mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
CRe: reset call cache on rendering change (#7927)
This fixes some values sometimes not updated in footer.
This commit is contained in:
@@ -1010,6 +1010,7 @@ function ReaderRolling:updatePos()
|
||||
logger.dbg("rendering hash changed:", self.rendering_hash, ">", new_rendering_hash)
|
||||
self.rendering_hash = new_rendering_hash
|
||||
-- A few things like page numbers may have changed
|
||||
self.ui.document:resetCallCache() -- be really sure this cache is reset
|
||||
self.ui.document:_readMetadata() -- get updated document height and nb of pages
|
||||
if self.hide_nonlinear_flows then
|
||||
self.ui.document:cacheFlows()
|
||||
|
||||
Reference in New Issue
Block a user