fix dark mode scheduling
This commit is contained in:
@@ -74,9 +74,11 @@ Singleton {
|
||||
|
||||
var now = new Date();
|
||||
if (now.getHours() >= root.start || now.getHours() < root.end) {
|
||||
root.startNightLight(root.temp);
|
||||
if (!root.enabled)
|
||||
root.startNightLight(root.temp);
|
||||
} else {
|
||||
root.stopNightLight();
|
||||
if (root.enabled)
|
||||
root.stopNightLight();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user