From 910829f2700ec76ca514ae73acc579496d73f21d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 5 Aug 2023 21:12:55 +0200 Subject: [PATCH] status/backlight: Sync checked on level changes Since switching to property bindings/notifications, value changes only happen on actual changes, so we cannot rely on them as the sole source of updating the checked state. Part-of: --- js/ui/status/backlight.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/status/backlight.js b/js/ui/status/backlight.js index 4faf4fab4..74df6a6cc 100644 --- a/js/ui/status/backlight.js +++ b/js/ui/status/backlight.js @@ -127,6 +127,7 @@ const DiscreteItem = GObject.registerClass({ this._levelButtons.get('off').visible = this.nLevels > 0; this._levelButtons.get('high').visible = this.nLevels > 1; this._levelButtons.get('low').visible = this.nLevels > 2; + this._syncChecked(); } _syncChecked() {