status/network: Show wireless-disabled icon when wifi 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-18 21:01:17 +01:00 committed by Marge Bot
parent 6b60a189fd
commit 24143eae0d

View File

@ -1413,6 +1413,9 @@ var NMDeviceWireless = class {
}
_getMenuIcon() {
if (!this._client.wireless_enabled)
return 'network-wireless-disabled-symbolic';
if (this._device.active_connection)
return this.getIndicatorIcon();
else