network: make the icon visible again when going from ethernet to nothing

https://bugzilla.gnome.org/show_bug.cgi?id=709638
This commit is contained in:
Dan Winship 2013-10-08 14:26:38 -04:00
parent 55edfd2e4a
commit f7624e5f05

View File

@ -1587,6 +1587,7 @@ const NMApplet = new Lang.Class({
_updateIcon: function() {
if (!this._client.networking_enabled || !this._mainConnection) {
this._primaryIndicator.icon_name = 'network-offline-symbolic';
this._primaryIndicator.visible = true;
} else {
let dev = this._mainConnection._primaryDevice;
this._primaryIndicator.visible = (dev != null);