mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Screen refresh between chapters (#3989)
This commit is contained in:
@@ -70,6 +70,16 @@ end
|
||||
|
||||
function ReaderToc:onPageUpdate(pageno)
|
||||
self.pageno = pageno
|
||||
if G_reader_settings:readSetting("full_refresh_count") == -1 then
|
||||
if self:isChapterEnd(pageno, 0) then
|
||||
self.chapter_refresh = true
|
||||
elseif self:isChapterBegin(pageno, 0) and self.chapter_refresh then
|
||||
UIManager:setDirty("all", "full")
|
||||
self.chapter_refresh = false
|
||||
else
|
||||
self.chapter_refresh = false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function ReaderToc:onPosUpdate(pos, pageno)
|
||||
|
||||
Reference in New Issue
Block a user