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:
Florian Müllner 2022-08-05 22:01:30 +02:00 committed by Marge Bot
parent d160804009
commit 0fdca0d21a

View File

@ -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)