barLevel: Use setters instead of methods
Switching to getters/setters make the code suitable for using with Tweener and as GObject properties, both of which we'll do soon enough. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/385
This commit is contained in:
@ -58,6 +58,6 @@ var Indicator = class extends PanelMenu.SystemIndicator {
|
||||
let visible = this._proxy.Brightness >= 0;
|
||||
this._item.visible = visible;
|
||||
if (visible)
|
||||
this._slider.setValue(this._proxy.Brightness / 100.0);
|
||||
this._slider.value = this._proxy.Brightness / 100.0;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user