mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
kobo: don't create FrontLightState config if it didn't exist to begin with
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user