fix: disable network info menu when device is not connected

This commit is contained in:
Qingping Hou
2016-11-27 16:40:47 -08:00
parent 171d40d287
commit bd43e59fe7
4 changed files with 8 additions and 6 deletions

View File

@@ -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{

View File

@@ -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{