From 3d3ed850fee3d9660642d84c1342beb6183ffb42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Mon, 21 Feb 2022 13:39:17 +0100 Subject: [PATCH] status/network: Show disabled icon when bluetooth cellular is disabled 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 9f74877ba..a90b29778 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;