mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Show OTA channel info when package is unavailable
so that users could be aware that there is other channels to check.
This commit is contained in:
@@ -121,8 +121,9 @@ function OTAManager:fetchAndProcessUpdate()
|
||||
text = _("Your KOReader is up to date."),
|
||||
})
|
||||
elseif ota_version == nil then
|
||||
local channel = ota_channels[OTAManager:getOTAChannel()]
|
||||
UIManager:show(InfoMessage:new{
|
||||
text = _("OTA package is not available."),
|
||||
text = T(_("OTA package is not available on %1 channel."), channel),
|
||||
})
|
||||
elseif ota_version then
|
||||
UIManager:show(ConfirmBox:new{
|
||||
@@ -212,7 +213,7 @@ function OTAManager:getOTAMenuTable()
|
||||
if NetworkMgr:getWifiStatus() == false then
|
||||
NetworkMgr:promptWifiOn()
|
||||
else
|
||||
OTAManager.fetchAndProcessUpdate()
|
||||
OTAManager:fetchAndProcessUpdate()
|
||||
end
|
||||
end
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user