From 86701f6cccd5c0f4e26cb5719559a3bb526802f5 Mon Sep 17 00:00:00 2001 From: poire-z Date: Fri, 11 Dec 2020 17:01:45 +0100 Subject: [PATCH] TextEditor: fix some settings not sticking (#6979) --- plugins/texteditor.koplugin/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/texteditor.koplugin/main.lua b/plugins/texteditor.koplugin/main.lua index 8fb5befa4..9ef525aab 100644 --- a/plugins/texteditor.koplugin/main.lua +++ b/plugins/texteditor.koplugin/main.lua @@ -62,9 +62,9 @@ function TextEditor:loadSettings() if self.settings:readSetting("monospace_font") then self.monospace_font = self.settings:readSetting("monospace_font") end - self.auto_para_direction = self.settings:readSetting("auto_para_direction") or true - self.force_ltr_para_direction = self.settings:readSetting("force_ltr_para_direction") or false - self.qr_code_export = self.settings:readSetting("qr_code_export") or true + self.auto_para_direction = self.settings:nilOrTrue("auto_para_direction") + self.force_ltr_para_direction = self.settings:isTrue("force_ltr_para_direction") + self.qr_code_export = self.settings:nilOrTrue("qr_code_export") end function TextEditor:onFlushSettings()