Don't store document-specific rotation when sticky rotation is enabled (#6423)

It doesn't do so for the FM, so the inconsistency is confusing.
Plus, if you're actively using sticky rotation, saved rotations are
ignored anyway.

Re #6420
reviewable/pr6408/r6^2
NiLuJe 4 years ago committed by GitHub
parent 4c524de472
commit db843929f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -827,7 +827,11 @@ end
function ReaderView:onSaveSettings()
self.ui.doc_settings:saveSetting("render_mode", self.render_mode)
self.ui.doc_settings:saveSetting("rotation_mode", Screen:getRotationMode())
-- Don't etch the current rotation in stone when sticky rotation is enabled
local locked = G_reader_settings:isTrue("lock_rotation")
if not locked then
self.ui.doc_settings:saveSetting("rotation_mode", Screen:getRotationMode())
end
self.ui.doc_settings:saveSetting("gamma", self.state.gamma)
self.ui.doc_settings:saveSetting("highlight", self.highlight.saved)
self.ui.doc_settings:saveSetting("page_overlap_style", self.page_overlap_style)

Loading…
Cancel
Save