mirror of
https://github.com/koreader/koreader.git
synced 2025-12-18 12:02:09 +01:00
Refresh AltStatusBar once a minute, if there are changes
This commit is contained in:
@@ -1331,6 +1331,9 @@ end
|
||||
-- no-op that will be wrapped by setupCallCache
|
||||
function CreDocument:resetCallCache() end
|
||||
|
||||
-- no-op that will be wrapped by setupCallCache
|
||||
function CreDocument:resetBufferCache() end
|
||||
|
||||
-- Optimise usage of some of the above methods by caching their results,
|
||||
-- either globally, or per page/pos for those whose result may depend on
|
||||
-- current page number or y-position.
|
||||
@@ -1562,6 +1565,7 @@ function CreDocument:setupCallCache()
|
||||
elseif name == "getWordFromPosition" then add_buffer_trash = true
|
||||
elseif name == "getTextFromPositions" then add_buffer_trash = true
|
||||
elseif name == "findText" then add_buffer_trash = true
|
||||
elseif name == "resetBufferCache" then add_buffer_trash = true
|
||||
|
||||
-- These may change page/pos
|
||||
elseif name == "gotoPage" then set_tag = "page" ; set_arg = 2 ; set_arg2 = 3
|
||||
|
||||
Reference in New Issue
Block a user