💥 fix(modules/nightlight): set temperature if identity is disabled

This commit is contained in:
retrozinndev
2025-09-28 13:07:09 -03:00
parent 8f73e01afb
commit 6018d6d792
+5
View File
@@ -166,10 +166,15 @@ export class NightLight extends GObject.Object {
const temperature = userData.getProperty("night_light.temperature", "number"); const temperature = userData.getProperty("night_light.temperature", "number");
const gamma = userData.getProperty("night_light.gamma", "number"); const gamma = userData.getProperty("night_light.gamma", "number");
if(identity) {
this.#temperature = temperature; this.#temperature = temperature;
this.notify("temperature"); this.notify("temperature");
this.#gamma = gamma; this.#gamma = gamma;
this.notify("gamma"); this.notify("gamma");
} else {
this.temperature = temperature;
this.gamma = gamma;
}
this.identity = identity; this.identity = identity;
} }