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.
This commit is contained in:
Jasper St. Pierre 2013-08-16 19:32:54 -04:00
parent 956c486345
commit 156be19c2d

View File

@ -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) {