mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
DeviceListener:onToggleFrontlight: add notification of "unchanged" (#10727)
This commit is contained in:
@@ -197,7 +197,9 @@ if Device:hasFrontlight() then
|
||||
local notif_cb = function()
|
||||
Notification:notify(new_text, notif_source)
|
||||
end
|
||||
powerd:toggleFrontlight(notif_cb)
|
||||
if not powerd:toggleFrontlight(notif_cb) then
|
||||
Notification:notify(_("Frontlight unchanged."), notif_source)
|
||||
end
|
||||
end
|
||||
|
||||
function DeviceListener:onShowFlDialog()
|
||||
|
||||
Reference in New Issue
Block a user