status/network: Also show disabled icon when wwan is not connected
Commit ca4f6e0123
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>
This commit is contained in:
parent
d52508a29e
commit
682629e603
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user