mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
KOSync: Only nag about "Action when Wi-Fi is off" when toggling (#10785)
auto-sync *on* Fix #10784
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user