Add tidy up option after failed update.
This commit is contained in:
1 parent
9f1e1a4bf4
commit
f6b1ed2b6d
1 file changed
+5
-2
@@ -114,8 +114,11 @@ function OTAManager:fetchAndProcessUpdate()
|
||||
text = _("Koreader will be updated on next restart."),
|
||||
})
|
||||
else
|
||||
UIManager:show(InfoMessage:new{
|
||||
text = _("Error updating Koreader."),
|
||||
UIManager:show(ConfirmBox:new{
|
||||
text = _("Error updating Koreader. Would you like to delete temporary files?"),
|
||||
ok_callback = function()
|
||||
os.execute("rm ota/ko*")
|
||||
end,
|
||||
})
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in new issue
Block a user