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:
parent
62d2c7efc3
commit
621810c409
@ -1158,7 +1158,6 @@ const NMApplet = new Lang.Class({
|
|||||||
this.parent('network-offline-symbolic', _('Network'));
|
this.parent('network-offline-symbolic', _('Network'));
|
||||||
|
|
||||||
this._vpnIcon = this.addIcon(null);
|
this._vpnIcon = this.addIcon(null);
|
||||||
this._vpnIcon.hide();
|
|
||||||
|
|
||||||
// Device types
|
// Device types
|
||||||
this._dtypes = { };
|
this._dtypes = { };
|
||||||
@ -1602,5 +1601,6 @@ const NMApplet = new Lang.Class({
|
|||||||
}
|
}
|
||||||
|
|
||||||
this._vpnIcon.icon_name = this._vpnSection.getIndicatorIcon();
|
this._vpnIcon.icon_name = this._vpnSection.getIndicatorIcon();
|
||||||
|
this._vpnIcon.visible = (this._vpnIcon.icon_name != '');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user