mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user