From 38aa74ec7cec4d0b25c8583d3f07415e49f09be9 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sun, 6 Aug 2023 00:02:39 +0200 Subject: [PATCH] KOSync: Only nag about "Action when Wi-Fi is off" when toggling (#10785) auto-sync *on* Fix #10784 --- plugins/kosync.koplugin/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kosync.koplugin/main.lua b/plugins/kosync.koplugin/main.lua index b3e053344..f4ef33397 100644 --- a/plugins/kosync.koplugin/main.lua +++ b/plugins/kosync.koplugin/main.lua @@ -229,7 +229,7 @@ function KOSync:addToMainMenu(menu_items) help_text = _([[This may lead to nagging about toggling WiFi on document close and suspend/resume, depending on the device's connectivity.]]), callback = function() -- Actively recommend switching the before wifi action to "turn_on" instead of prompt, as prompt will just not be practical (or even plain usable) here. - if Device:hasWifiToggle() and G_reader_settings:readSetting("wifi_enable_action") ~= "turn_on" then + if Device:hasWifiToggle() and G_reader_settings:readSetting("wifi_enable_action") ~= "turn_on" and not self.settings.auto_sync then UIManager:show(InfoMessage:new{ text = _("You will have to switch the 'Action when Wi-Fi is off' Network setting to 'turn on' to be able to enable this feature!") }) return end