mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
ipc: nightlight properly toggle between the 3 modes.
This commit is contained in:
@@ -258,11 +258,14 @@ Item {
|
||||
}
|
||||
|
||||
if (Settings.data.nightLight.forced) {
|
||||
Settings.data.nightLight.enabled = false;
|
||||
Settings.data.nightLight.forced = false;
|
||||
} else {
|
||||
Settings.data.nightLight.enabled = true;
|
||||
Settings.data.nightLight.forced = true;
|
||||
if (Settings.data.nightLight.enabled) {
|
||||
Settings.data.nightLight.enabled = false;
|
||||
} else {
|
||||
Settings.data.nightLight.forced = true;
|
||||
Settings.data.nightLight.enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user