mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
readerfooter(fix): avoid setting mini footer to invisible when full progress bar is on
Our previous assumption is user will only choose between full or min bar. The does not hold anymore as many more info has been added to the mini bar and sometimes user might want to have both of them on. This patch makes the reader behavior consistent when both bars are set to be on for a document.
This commit is contained in:
@@ -643,8 +643,7 @@ function ReaderView:onReadSettings(config)
|
||||
end
|
||||
self.state.gamma = config:readSetting("gamma") or DGLOBALGAMMA
|
||||
local full_screen = config:readSetting("kopt_full_screen") or self.document.configurable.full_screen
|
||||
local status_line = config:readSetting("copt_status_line") or self.document.configurable.status_line
|
||||
if full_screen == 0 or status_line == 0 then
|
||||
if full_screen == 0 then
|
||||
self.footer_visible = false
|
||||
end
|
||||
self:resetLayout()
|
||||
|
||||
Reference in New Issue
Block a user