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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2198>
This commit is contained in:
parent
8a7f935969
commit
ca4f6e0123
@ -627,6 +627,13 @@ var NMDeviceModem = class extends NMConnectionDevice {
|
|||||||
return super._getStatus();
|
return super._getStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_getMenuIcon() {
|
||||||
|
if (!this._client.wwan_enabled)
|
||||||
|
return 'network-cellular-disabled-symbolic';
|
||||||
|
|
||||||
|
return this.getIndicatorIcon();
|
||||||
|
}
|
||||||
|
|
||||||
getIndicatorIcon() {
|
getIndicatorIcon() {
|
||||||
if (this._device.active_connection) {
|
if (this._device.active_connection) {
|
||||||
if (this._device.active_connection.state == NM.ActiveConnectionState.ACTIVATING)
|
if (this._device.active_connection.state == NM.ActiveConnectionState.ACTIVATING)
|
||||||
|
Loading…
Reference in New Issue
Block a user