[gnome-shell] status/network: Also show disabled icon when wwan is not connected



commit 682629e603b11eecb8c4a0b797ddbd56ab387c27
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Tue Apr 26 19:01:14 2022 +0200

    status/network: Also show disabled icon when wwan is not connected
    
    Commit ca4f6e01234e9ef7f1315fcb13b89423da670dc7 was supposed to show the
    "cellular-disabled" icon when wwan is disabled. For wwan, just like for
    bluetooth wwan networks, we probably want this to include the "not
    connected" state, because disconnecting from cellular service de-facto
    means disabling it.
    
    So switch the check to show the "cellular-disabled" icon to also use the
    icon whether there's no active connection, not only when the wwan device
    is turned off.
    
    Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5401
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2283>

 js/ui/status/network.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 05f27fcdf6..289c323ed3 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -597,7 +597,7 @@ var NMDeviceModem = class extends NMConnectionDevice {
     }
 
     _getMenuIcon() {
-        if (!this._client.wwan_enabled)
+        if (!this._device.active_connection)
             return 'network-cellular-disabled-symbolic';
 
         return this.getIndicatorIcon();


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