mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix default not being used for View mode and Progress bar
Default setting set by holding on the bottom config buttons for "View mode" (scroll/page) and "Progress bar" (full/mini) were not used. Also, when switching Progress bar from 'full' to 'mini', show the mini bar again.
This commit is contained in:
@@ -172,8 +172,6 @@ function ReaderRolling:onReadSettings(config)
|
||||
self.show_overlap_enable = DSHOWOVERLAP
|
||||
end
|
||||
self.inverse_reading_order = config:readSetting("inverse_reading_order") or false
|
||||
|
||||
self:onSetStatusLine(config:readSetting("copt_status_line") or DCREREADER_PROGRESS_BAR)
|
||||
end
|
||||
|
||||
-- in scroll mode percent_finished must be save before close document
|
||||
@@ -712,6 +710,9 @@ end
|
||||
--]]
|
||||
|
||||
function ReaderRolling:onSetStatusLine(status_line)
|
||||
-- in crengine: 0=header enabled, 1=disabled
|
||||
-- in koreader: 0=top status bar, 1=bottom mini bar
|
||||
self.ui.document:setStatusLineProp(status_line)
|
||||
self.cre_top_bar_enabled = status_line == 0
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user