ReaderRolling: save percent_finished on flushing settings (#14787)
This commit is contained in:
1 parent
7353a2e5a4
commit
1da6dfe1e5
4 files changed
+11
-7
No files matched your search
@@ -284,8 +284,6 @@ function ReaderRolling:onCloseDocument()
|
||||
UIManager:unschedule(self.onUpdatePos)
|
||||
|
||||
self.current_header_height = nil -- show unload progress bar at top
|
||||
-- we cannot do it in onSaveSettings() because getLastPercent() uses self.ui.document
|
||||
self.ui.doc_settings:saveSetting("percent_finished", self:getLastPercent())
|
||||
|
||||
local cache_file_path = self.ui.document:getCacheFilePath() -- nil if no cache file
|
||||
self.ui.doc_settings:saveSetting("cache_file_path", cache_file_path)
|
||||
@@ -335,6 +333,7 @@ function ReaderRolling:showSuggestReloadConfirmBox(warn_txt)
|
||||
end
|
||||
|
||||
function ReaderRolling:onSaveSettings()
|
||||
self.ui.doc_settings:saveSetting("percent_finished", self.view.footer.percent_finished)
|
||||
self.ui.doc_settings:delSetting("last_percent") -- deprecated
|
||||
self.ui.doc_settings:saveSetting("last_xpointer", self.xpointer)
|
||||
self.ui.doc_settings:saveSetting("hide_nonlinear_flows", self.hide_nonlinear_flows)
|
||||
|
||||
Reference in new issue
Block a user