chore: rename frontlight related variables to keep style consistent

flIntensity -> fl_intensity
flState -> is_fl_on
fallback_FrontLightLevel -> fallback_fl_level
This commit is contained in:
Qingping Hou
2016-03-01 22:06:21 -08:00
committed by NiLuJe
parent 32874b18c5
commit 9afae91b13
6 changed files with 29 additions and 29 deletions

View File

@@ -121,7 +121,7 @@ if Device:isKobo() then
local powerd = Device:getPowerDevice()
if powerd and powerd.restore_settings then
local intensity = G_reader_settings:readSetting("frontlight_intensity")
powerd.flIntensity = intensity or powerd.flIntensity
powerd.fl_intensity = intensity or powerd.fl_intensity
local state = G_reader_settings:readSetting("frontlight_state")
if state then
-- Default state is off