better logic for #6386 (#6388)

This commit is contained in:
yparitcher
2020-07-17 13:37:49 -04:00
committed by GitHub
parent 9a5b659a46
commit 1db2b7d875

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