Fix a hasFrontLight call in reader.lua...

(it's a function, not a bool ;'( ).

Fix #1961
This commit is contained in:
NiLuJe
2016-04-14 17:36:06 +02:00
parent 273fbb2ec3
commit dfe321d87a

View File

@@ -117,7 +117,7 @@ end
-- restore kobo frontlight settings and probe kobo touch coordinates
if Device:isKobo() then
if Device.hasFrontlight then
if Device:hasFrontlight() then
local powerd = Device:getPowerDevice()
if powerd and powerd.restore_settings then
-- UIManager:init() should have sanely set up the frontlight_stuff by this point