mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2862>
This commit is contained in:
parent
987435f1cc
commit
910829f270
1 changed files with 1 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue