fix dark mode scheduling

This commit is contained in:
2026-03-26 14:29:18 +01:00
parent 6f28c40d68
commit 28303f9d07
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -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();
}
}
}