From b2574cf2afb5a065e271e7c5046a9700c8e89bf8 Mon Sep 17 00:00:00 2001 From: Myryk Date: Wed, 29 May 2024 18:11:03 +0200 Subject: [PATCH] switched to strict inequality --- .config/ags/modules/indicators/indicatorvalues.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/ags/modules/indicators/indicatorvalues.js b/.config/ags/modules/indicators/indicatorvalues.js index 2eebfe50d..7012c82a9 100644 --- a/.config/ags/modules/indicators/indicatorvalues.js +++ b/.config/ags/modules/indicators/indicatorvalues.js @@ -59,7 +59,7 @@ export default (monitor = 0) => { }, 'notify::screen-value'), progressSetup: (self) => self.hook(Brightness[monitor], (progress) => { const updateValue = Brightness[monitor].screen_value; - if (updateValue != progress.value) Indicator.popup(1); + if (updateValue !== progress.value) Indicator.popup(1); progress.value = updateValue; }, 'notify::screen-value'), }); @@ -88,7 +88,7 @@ export default (monitor = 0) => { progressSetup: (self) => self.hook(Audio, (progress) => { const updateValue = Audio.speaker?.volume; if (!isNaN(updateValue)) { - if (updateValue != progress.value) Indicator.popup(1); + if (updateValue !== progress.value) Indicator.popup(1); progress.value = updateValue; } }),