mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
bugfix: refresh cache when switching between standard reader and
koptreader
This commit is contained in:
parent
e42403bb85
commit
46b6000cb1
@ -65,7 +65,7 @@ function KOPTReader:drawOrCache(no, preCache)
|
||||
local dc = self:setzoom(page, preCache)
|
||||
|
||||
-- check if we have relevant cache contents
|
||||
local pagehash = no..'_'..self.globalzoom..'_'..self.globalrotate..'_'..self.globalgamma
|
||||
local pagehash = no..'_'..self.globalzoom..'_'..self.globalrotate..'_'..self.globalgamma..'K'
|
||||
Debug('page hash', pagehash)
|
||||
if self.cache[pagehash] ~= nil then
|
||||
-- we have something in cache
|
||||
|
Loading…
Reference in New Issue
Block a user