mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Keep intensity in sync at the config level too
Make sure frontlight_intensity in reader.lua settings matches what we write into Nikcel's config
This commit is contained in:
@@ -130,6 +130,9 @@ end
|
||||
function NickelConf.frontLightLevel.set(new_intensity)
|
||||
assert(new_intensity >= 0 and new_intensity <= 100,
|
||||
"Wrong brightness value given!")
|
||||
-- Make sure we're in sync with KOReader on the config level, too
|
||||
G_reader_settings:saveSetting("frontlight_intensity",
|
||||
new_intensity)
|
||||
return NickelConf._write_kobo_conf(re_FrontLightLevel,
|
||||
front_light_level_str,
|
||||
new_intensity)
|
||||
|
||||
Reference in New Issue
Block a user