kobo: don't create FrontLightState config if it didn't exist to begin with

This commit is contained in:
Qingping Hou
2016-03-01 23:09:14 -08:00
committed by NiLuJe
parent 8b7658b8cd
commit 8190093f83
3 changed files with 9 additions and 11 deletions

View File

@@ -63,7 +63,7 @@ function ReaderFrontLight:onShowIntensity()
local powerd = Device:getPowerDevice()
if powerd.fl_intensity ~= nil then
UIManager:show(Notification:new{
text = T( _("Frontlight intensity is set to %1."), powerd.fl_intensity),
text = T(_("Frontlight intensity is set to %1."), powerd.fl_intensity),
timeout = 1.0,
})
end