[gnome-shell] status/network: Make wireless insensitive when hardware-disabled
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] status/network: Make wireless insensitive when hardware-disabled
- Date: Wed, 10 Aug 2022 16:41:15 +0000 (UTC)
commit 3a1ebd86d2f747c66b41dac984aeb9a040d7252f
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Aug 3 23:24:53 2022 +0200
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>
js/ui/status/network.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 28a5cfa0f9..abd3c3f518 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -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() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]