Auto enable & disable nightMode on automation

This commit is contained in:
purian23 committed 2025-08-30 00:30:22 -04:00
1 parent e693857c39
commit ad23261478
1 file changed
+3 -1
+3 -1
View File
@@ -666,10 +666,12 @@ Item {
description: "Only adjust gamma based on time or location rules."
checked: SessionData.nightModeAutoEnabled
onToggled: (checked) => {
SessionData.setNightModeAutoEnabled(checked);
if (checked && !DisplayService.nightModeEnabled) {
DisplayService.toggleNightMode();
} else if (!checked && DisplayService.nightModeEnabled) {
DisplayService.toggleNightMode();
}
SessionData.setNightModeAutoEnabled(checked);
}
Connections {