@ -814,6 +814,7 @@ function ReaderRolling:updatePos()
self.ui : handleEvent ( Event : new ( " UpdateToc " ) )
self.ui : handleEvent ( Event : new ( " UpdateToc " ) )
self.view . footer : updateFooter ( )
self.view . footer : updateFooter ( )
end
end
self : updateTopStatusBarMarkers ( )
UIManager : setDirty ( self.view . dialog , " partial " )
UIManager : setDirty ( self.view . dialog , " partial " )
-- Allow for the new rendering to be shown before possibly showing
-- Allow for the new rendering to be shown before possibly showing
-- the "Styles have changes..." ConfirmBox so the user can decide
-- the "Styles have changes..." ConfirmBox so the user can decide
@ -1005,6 +1006,15 @@ function ReaderRolling:onSetStatusLine(status_line, on_read_settings)
self.ui : handleEvent ( Event : new ( " UpdatePos " ) )
self.ui : handleEvent ( Event : new ( " UpdatePos " ) )
end
end
function ReaderRolling : updateTopStatusBarMarkers ( )
if not self.cre_top_bar_enabled then
return
end
local pages = self.ui . document : getPageCount ( )
local ticks = self.ui . toc : getTocTicksForFooter ( )
self.ui . document : setHeaderProgressMarks ( pages , ticks )
end
function ReaderRolling : updateBatteryState ( )
function ReaderRolling : updateBatteryState ( )
if self.view . view_mode == " page " and self.cre_top_bar_enabled then
if self.view . view_mode == " page " and self.cre_top_bar_enabled then
logger.dbg ( " update battery state " )
logger.dbg ( " update battery state " )