[gnome-shell] status/network: Show cellular-disabled icon when cellular is disabled
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] status/network: Show cellular-disabled icon when cellular is disabled
- Date: Wed, 23 Feb 2022 00:20:02 +0000 (UTC)
commit ca4f6e01234e9ef7f1315fcb13b89423da670dc7
Author: Jonas Dreßler <verdre v0yd nl>
Date: Fri Feb 18 21:14:46 2022 +0100
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>
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 e365139779..27ae5615fc 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -627,6 +627,13 @@ var NMDeviceModem = class extends NMConnectionDevice {
return super._getStatus();
}
+ _getMenuIcon() {
+ if (!this._client.wwan_enabled)
+ return 'network-cellular-disabled-symbolic';
+
+ return this.getIndicatorIcon();
+ }
+
getIndicatorIcon() {
if (this._device.active_connection) {
if (this._device.active_connection.state == NM.ActiveConnectionState.ACTIVATING)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]