From 06a0b27664afe8717500140e7ea235cf294b15bd Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Tue, 25 Sep 2012 10:55:31 +0100 Subject: [PATCH] Allow clearing both internal and document caches via Menu Bind the key "C" in Menu to clear internal tile cache and key "D" to clear the document cache. --- unireader.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unireader.lua b/unireader.lua index 5b5c3ceed..1c58c7872 100644 --- a/unireader.lua +++ b/unireader.lua @@ -2113,6 +2113,8 @@ function UniReader:showMenu() if ev.code == KEY_BACK or ev.code == KEY_MENU then return elseif ev.code == KEY_C then + self:clearCache() + elseif ev.code == KEY_D then self.doc:cleanCache() end end