Remember the final rotation during Reboot/PowerOff/AutoSuspend, too (#7133)
Re #7096, Fix #7125 Co-authored-by: yparitcher <y@paritcher.com>
This commit is contained in:
1 parent
f53fa1d323
commit
47b0d4089a
2 files changed
+6
-4
No files matched your search
+2
-2
@@ -339,8 +339,8 @@ local function exitReader()
|
||||
-- Save any device settings before closing G_reader_settings
|
||||
Device:saveSettings()
|
||||
|
||||
-- Save current rotation to have it for next startup
|
||||
G_reader_settings:saveSetting("closed_rotation_mode", Device.screen:getRotationMode())
|
||||
-- Save current rotation (or the original rotation if ScreenSaver temporarily modified it) to remember it for next startup
|
||||
G_reader_settings:saveSetting("closed_rotation_mode", Device.orig_rotation_mode or Device.screen:getRotationMode())
|
||||
|
||||
G_reader_settings:close()
|
||||
|
||||
|
||||
Reference in new issue
Block a user