status/network: Make wireless insensitive when hardware-disabled

We cannot do anything while switched off, so indicate that to the
user.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2408>
This commit is contained in:
Florian Müllner 2022-08-03 23:24:53 +02:00 committed by Marge Bot
parent 791c65a5f9
commit 3a1ebd86d2

View File

@ -1705,6 +1705,9 @@ class NMWirelessSection extends NMDeviceSection {
this._client?.bind_property('wireless-enabled',
this, 'checked',
GObject.BindingFlags.SYNC_CREATE);
this._client?.bind_property('wireless-hardware-enabled',
this, 'reactive',
GObject.BindingFlags.SYNC_CREATE);
}
activate() {