better logic for #6386 (#6388)

This commit is contained in:
yparitcher authored and GitHub committed 2020-07-17 19:37:49 +02:00
1 parent 9a5b659a46
commit 1db2b7d875
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ end
function DeviceListener:onSetNightMode(night_mode_on)
local night_mode = G_reader_settings:isTrue("night_mode")
if (night_mode_on and not night_mode) or (not night_mode_on and night_mode) then
if night_mode_on ~= night_mode then
self:onToggleNightMode()
end
end