diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 9575af7de..ad373f6e6 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1492,6 +1492,15 @@ var NMVPNSection = new Lang.Class({ this.parent(client); this.item.menu.addSettingsAction(_("VPN Settings"), 'gnome-network-panel.desktop'); + + this._sync(); + }, + + _sync: function() { + let nItems = this._connectionItems.size; + this.item.actor.visible = (nItems > 0); + + this.parent(); }, _getDescription: function() {