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:
1 parent
1b3d974bec
commit
fa0117bb2a
4 files changed
+25
-9
No files matched your search
@@ -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