@ -1031,17 +1031,14 @@ function ReaderRolling:onSetVisiblePages(visible_pages)
end
end
end
end
function ReaderRolling : onSetStatusLine ( status_line , on_read_settings )
function ReaderRolling : onSetStatusLine ( status_line )
-- status_line values:
-- Enable or disable crengine header status line
-- in crengine: 0=header enabled, 1=disabled
-- Note that for crengine, 0=header enabled, 1=header disabled
-- in koreader: 0=top status bar, 1=bottom mini bar
self.ui . document : setStatusLineProp ( status_line )
self.ui . document : setStatusLineProp ( status_line )
self.cre_top_bar_enabled = status_line == 0
self.cre_top_bar_enabled = status_line == 0
if not on_read_settings then
-- (We used to toggle the footer when toggling the top status bar,
-- Ignore this event when it is first sent by ReaderCoptListener
-- but people seem to like having them both, and it feels more
-- on book loading, so we stay with the saved footer settings
-- practicable to have the independant.)
self.view . footer : setVisible ( status_line == 1 )
end
self.ui : handleEvent ( Event : new ( " UpdatePos " ) )
self.ui : handleEvent ( Event : new ( " UpdatePos " ) )
end
end