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)
|
||||
|
||||
@@ -67,5 +67,10 @@ return {
|
||||
callback = function() UIManager:setRefreshRate(custom_3()) end,
|
||||
hold_input = custom_input("refresh_rate_3")
|
||||
},
|
||||
{
|
||||
text = _("Every chapter"),
|
||||
checked_func = function() return UIManager:getRefreshRate() == -1 end,
|
||||
callback = function() UIManager:setRefreshRate(-1) end,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user