summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Sanchez Prada <mario@endlessm.com>2018-04-17 21:51:34 +0100
committerMario Sanchez Prada <mario@endlessm.com>2018-05-15 09:15:43 +0100
commitd8b9e23502ad763329c75659387c21fb9084de57 (patch)
treefcb3ce57cf9e67dfb313756b31f2831908d0d0e4
parent7d59eaa67e02fb2ef116433271b5c735a5af5455 (diff)
downloadgnome-shell-d8b9e23502ad763329c75659387c21fb9084de57.tar.gz
network: Update the icon in the panel whenever NM's state changes
Similar to what it's done when the main connection changes, we need to make sure that the icon in the panel gets updated before calling _syncConnectivity(), so that the icon gets always updated if needed, regardless of whether there's an active connection or not. This is needed because there's at least one case when an icon should be shown when the computer is not connected to any network: when a hotspot has been enabled, which can be useful even if there's not an internet connection to share (e.g. to easily allow connecting other devices to the computer. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/214
-rw-r--r--js/ui/status/network.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 54ed5cabc..a75993612 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1944,6 +1944,7 @@ var NMApplet = new Lang.Class({
this.indicators.visible = this._client.nm_running;
this.menu.actor.visible = this._client.networking_enabled;
+ this._updateIcon();
this._syncConnectivity();
},