mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix: disable network info menu when device is not connected
This commit is contained in:
@@ -138,7 +138,7 @@ function EvernoteExporter:addToMainMenu(tab_item_table)
|
||||
end
|
||||
|
||||
function EvernoteExporter:login()
|
||||
if NetworkMgr:getWifiStatus() == false then
|
||||
if not NetworkMgr:isOnline() then
|
||||
NetworkMgr:promptWifiOn()
|
||||
end
|
||||
self.login_dialog = LoginDialog:new{
|
||||
|
||||
@@ -224,7 +224,7 @@ function KOSync:setCustomServer(server)
|
||||
end
|
||||
|
||||
function KOSync:login()
|
||||
if NetworkMgr:getWifiStatus() == false then
|
||||
if not NetworkMgr:isOnline() then
|
||||
NetworkMgr:promptWifiOn()
|
||||
end
|
||||
self.login_dialog = LoginDialog:new{
|
||||
|
||||
Reference in New Issue
Block a user