network: Fix visibility of the VPN icon

This is a regression from e6c239d0f3,
where we removed the calls to hide()/show() when we had a VPN device
vs. not.

https://bugzilla.gnome.org/show_bug.cgi?id=702536
This commit is contained in:
Jasper St. Pierre 2013-06-17 18:24:52 -04:00
parent 62d2c7efc3
commit 621810c409

View File

@ -1158,7 +1158,6 @@ const NMApplet = new Lang.Class({
this.parent('network-offline-symbolic', _('Network'));
this._vpnIcon = this.addIcon(null);
this._vpnIcon.hide();
// Device types
this._dtypes = { };
@ -1602,5 +1601,6 @@ const NMApplet = new Lang.Class({
}
this._vpnIcon.icon_name = this._vpnSection.getIndicatorIcon();
this._vpnIcon.visible = (this._vpnIcon.icon_name != '');
}
});