[gnome-shell] status/network: Show disabled icon when bluetooth cellular is disabled



commit 3d3ed850fee3d9660642d84c1342beb6183ffb42
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Mon Feb 21 13:39:17 2022 +0100

    status/network: Show disabled icon when bluetooth cellular 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 | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 9f74877baf..a90b29778a 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -669,6 +669,13 @@ var NMDeviceBluetooth = class extends NMConnectionDevice {
         return _("Connect to Internet");
     }
 
+    _getMenuIcon() {
+        if (!this._device.active_connection)
+            return 'network-cellular-disabled-symbolic';
+
+        return this.getIndicatorIcon();
+    }
+
     getIndicatorIcon() {
         if (this._device.active_connection) {
             let state = this._device.active_connection.state;


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