From 621810c409e8639a7fa4e205bece6a848f483fab Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 17 Jun 2013 18:24:52 -0400 Subject: [PATCH] network: Fix visibility of the VPN icon This is a regression from e6c239d0f3318984815049abb621f6b0cb3dc85e, 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 --- js/ui/status/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/network.js b/js/ui/status/network.js index dde566ed3..1fa8ebc9f 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -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 != ''); } });