From 156be19c2d17cd49d5dd7b8a7eeeaf3fee6bf479 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 16 Aug 2013 19:32:54 -0400 Subject: [PATCH] network: Update the icon even if we don't have a connection If we don't have a connection at startup or we transition from having a connection to not having a connection, we need to make sure we hide the correct indicators. --- js/ui/status/network.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 2b5efebd6..c2a2686a4 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1498,8 +1498,9 @@ const NMApplet = new Lang.Class({ if (this._mainConnection) { let dev = this._mainConnection._primaryDevice; this._mainConnectionIconChangedId = dev.connect('icon-changed', Lang.bind(this, this._updateIcon)); - this._updateIcon(); } + + this._updateIcon(); }, _notifyActivated: function(activeConnection) {