mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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