[gnome-shell] status/network: Show wireless-disabled icon when wifi is disabled



commit 24143eae0d4548b577b69ef9d12f6ddf6f29edc3
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Fri Feb 18 21:01:17 2022 +0100

    status/network: Show wireless-disabled icon when wifi is disabled
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2198>

 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 e8d8568497..e365139779 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1413,6 +1413,9 @@ var NMDeviceWireless = class {
     }
 
     _getMenuIcon() {
+        if (!this._client.wireless_enabled)
+            return 'network-wireless-disabled-symbolic';
+
         if (this._device.active_connection)
             return this.getIndicatorIcon();
         else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]