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>
This commit is contained in:
Jonas Dreßler 2022-02-21 13:39:17 +01:00 committed by Marge Bot
parent 2898b4d29c
commit 3d3ed850fe

View File

@ -669,6 +669,13 @@ var NMDeviceBluetooth = class extends NMConnectionDevice {
return _("Connect to Internet"); return _("Connect to Internet");
} }
_getMenuIcon() {
if (!this._device.active_connection)
return 'network-cellular-disabled-symbolic';
return this.getIndicatorIcon();
}
getIndicatorIcon() { getIndicatorIcon() {
if (this._device.active_connection) { if (this._device.active_connection) {
let state = this._device.active_connection.state; let state = this._device.active_connection.state;