From ca4f6e01234e9ef7f1315fcb13b89423da670dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Fri, 18 Feb 2022 21:14:46 +0100 Subject: [PATCH] status/network: Show cellular-disabled icon when cellular is disabled We also have this icon, so let's use it. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186 Part-of: --- 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 e36513977..27ae5615f 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -627,6 +627,13 @@ var NMDeviceModem = class extends NMConnectionDevice { return super._getStatus(); } + _getMenuIcon() { + if (!this._client.wwan_enabled) + return 'network-cellular-disabled-symbolic'; + + return this.getIndicatorIcon(); + } + getIndicatorIcon() { if (this._device.active_connection) { if (this._device.active_connection.state == NM.ActiveConnectionState.ACTIVATING)