💥 fix(modules/nightlight): set temperature if identity is disabled
This commit is contained in:
@@ -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");
|
||||||
|
|
||||||
this.#temperature = temperature;
|
if(identity) {
|
||||||
this.notify("temperature");
|
this.#temperature = temperature;
|
||||||
this.#gamma = gamma;
|
this.notify("temperature");
|
||||||
this.notify("gamma");
|
this.#gamma = gamma;
|
||||||
|
this.notify("gamma");
|
||||||
|
} else {
|
||||||
|
this.temperature = temperature;
|
||||||
|
this.gamma = gamma;
|
||||||
|
}
|
||||||
|
|
||||||
this.identity = identity;
|
this.identity = identity;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user