From 6018d6d7922d43c4cfe1919d24f3728ddf0161a5 Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Sun, 28 Sep 2025 13:07:09 -0300 Subject: [PATCH] :boom: fix(modules/nightlight): set temperature if identity is disabled --- src/modules/nightlight.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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; }