diff --git a/src/modules/nightlight.ts b/src/modules/nightlight.ts index cd22c73..0fe41ce 100644 --- a/src/modules/nightlight.ts +++ b/src/modules/nightlight.ts @@ -166,10 +166,15 @@ export class NightLight extends GObject.Object { const temperature = userData.getProperty("night_light.temperature", "number"); const gamma = userData.getProperty("night_light.gamma", "number"); - this.#temperature = temperature; - this.notify("temperature"); - this.#gamma = gamma; - this.notify("gamma"); + if(identity) { + this.#temperature = temperature; + this.notify("temperature"); + this.#gamma = gamma; + this.notify("gamma"); + } else { + this.temperature = temperature; + this.gamma = gamma; + } this.identity = identity; }