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:
parent
956c486345
commit
156be19c2d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user