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.
This commit is contained in:
Tigran Aivazian
2012-09-25 10:55:31 +01:00
parent 16623b5b08
commit 06a0b27664

View File

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