From 7c4b1d4ae62cfc6c5b0637819d465ce8968bd944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 2 Aug 2023 18:09:46 +0200 Subject: [PATCH] status/backlight: Notify slider value changes The custom setter used by the slider item isn't emitting change notifications, so the property binding that uses it as source never propagates the new value. Fix this by emitting proper change notifications. Part-of: --- js/ui/status/backlight.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/status/backlight.js b/js/ui/status/backlight.js index cb2904ece..e7cf7e795 100644 --- a/js/ui/status/backlight.js +++ b/js/ui/status/backlight.js @@ -44,9 +44,14 @@ const SliderItem = GObject.registerClass({ } set value(value) { + if (this.value === value) + return; + this._slider.block_signal_handler(this._sliderChangedId); this._slider.value = value / 100; this._slider.unblock_signal_handler(this._sliderChangedId); + + this.notify('value'); } });