[fix, Kobo] Save frontlight state on shutdown after suspend (#5305)

Fixes <https://github.com/koreader/koreader/issues/5292>.
pull/5311/head
Frans de Jonge 5 years ago committed by GitHub
parent 621f36b4a9
commit 1b17ce8ba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -166,7 +166,9 @@ function KoboPowerD:saveSettings()
-- that if frontlight was toggled off, we save and restore the previous
-- untoggled intensity and toggle state at next startup)
local cur_intensity = self.fl_intensity
local cur_is_fl_on = self.is_fl_on
-- If we're shutting down straight from suspend then the frontlight won't
-- be turned on but we still want to save its state.
local cur_is_fl_on = self.is_fl_on or self.fl_was_on
local cur_warmth = self.fl_warmth
local cur_auto_warmth = self.auto_warmth
local cur_max_warmth_hour = self.max_warmth_hour

Loading…
Cancel
Save