💥 ags(scripts/nightlight): do not call hyprsunset when changing variables

This commit is contained in:
retrozinndev
2025-04-28 15:25:52 -03:00
parent 637ceae686
commit f419f4167a
+8 -4
View File
@@ -42,8 +42,10 @@ class NightLight extends GObject.Object {
if(t.trim() !== "" && t.trim().length <= 5) {
const val = Number.parseInt(t.trim());
if(this.#temperature !== val)
this.temperature = val;
if(this.#temperature !== val) {
this.#temperature = val;
this.notify("temperature");
}
}
}).catch((r) => console.error(r));
@@ -51,8 +53,10 @@ class NightLight extends GObject.Object {
if(g.trim() !== "" && g.trim().length <= 5) {
const val = Number.parseInt(g.trim());
if(this.#gamma !== val)
this.gamma = val;
if(this.#gamma !== val) {
this.#gamma = val;
this.notify("gamma");
}
}
}).catch((r) => console.error(r));
});