quickSettings: Bind menu arrow's reactivity to parent
When a QuickMenuToggle is made insensitive, then it is unexpected that its menu can still be opened despite the appearance. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2405>
This commit is contained in:
parent
d160804009
commit
0fdca0d21a
@ -123,7 +123,10 @@ var QuickMenuToggle = GObject.registerClass({
|
||||
|
||||
this.bind_property('menu-enabled',
|
||||
this._menuButton, 'visible',
|
||||
GObject.BindingFlags.DEFAULT);
|
||||
GObject.BindingFlags.SYNC_CREATE);
|
||||
this.bind_property('reactive',
|
||||
this._menuButton, 'reactive',
|
||||
GObject.BindingFlags.SYNC_CREATE);
|
||||
this._menuButton.connect('clicked', () => this.menu.open());
|
||||
this.connect('popup-menu', () => {
|
||||
if (this.menuEnabled)
|
||||
|
Loading…
Reference in New Issue
Block a user