Don't toggle the footer when toggling the top status bar
This commit is contained in:
1 parent
8ee7dcf342
commit
49e2d91afb
5 files changed
+21
-15
No files matched your search
@@ -1031,17 +1031,14 @@ function ReaderRolling:onSetVisiblePages(visible_pages)
|
||||
end
|
||||
end
|
||||
|
||||
function ReaderRolling:onSetStatusLine(status_line, on_read_settings)
|
||||
-- status_line values:
|
||||
-- in crengine: 0=header enabled, 1=disabled
|
||||
-- in koreader: 0=top status bar, 1=bottom mini bar
|
||||
function ReaderRolling:onSetStatusLine(status_line)
|
||||
-- Enable or disable crengine header status line
|
||||
-- Note that for crengine, 0=header enabled, 1=header disabled
|
||||
self.ui.document:setStatusLineProp(status_line)
|
||||
self.cre_top_bar_enabled = status_line == 0
|
||||
if not on_read_settings then
|
||||
-- Ignore this event when it is first sent by ReaderCoptListener
|
||||
-- on book loading, so we stay with the saved footer settings
|
||||
self.view.footer:setVisible(status_line == 1)
|
||||
end
|
||||
-- (We used to toggle the footer when toggling the top status bar,
|
||||
-- but people seem to like having them both, and it feels more
|
||||
-- practicable to have the independant.)
|
||||
self.ui:handleEvent(Event:new("UpdatePos"))
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user