From f6b1ed2b6dd9ada863e21f552ce99c5641c8e606 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Sun, 14 Sep 2014 16:07:19 +0100 Subject: [PATCH] Add tidy up option after failed update. --- frontend/ui/otamanager.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/ui/otamanager.lua b/frontend/ui/otamanager.lua index fac45b708..514b44b1a 100644 --- a/frontend/ui/otamanager.lua +++ b/frontend/ui/otamanager.lua @@ -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)