Refactor Kobo frontlight_intensity restoration: move to reader.lua

This commit is contained in:
Paulo Matias
2013-08-13 13:56:46 -03:00
parent f68edd97ba
commit e45442c1f6
3 changed files with 10 additions and 7 deletions

View File

@@ -19,7 +19,8 @@ KindleFrontLight = {
KoboFrontLight = {
min = 1, max = 100,
intensity = nil,
intensity = 20,
restore_settings = true,
fl = nil,
}
@@ -227,11 +228,6 @@ end
function KoboFrontLight:init()
self.fl = kobolight.open()
self.intensity = G_reader_settings:readSetting("frontlight_intensity")
if not self.intensity then
self.intensity = 20
end
self:setIntensity(self.intensity)
end
function KoboFrontLight:toggle()