network: Update VPN title when the connection is changed

When the connection is modified then the title might be changed. Call
the UI update function to ensure that widgets are updated.
This commit is contained in:
Benjamin Berg 2018-05-24 18:13:40 +02:00
parent a51dbcd8ca
commit 52034ba0be

View file

@ -51,6 +51,8 @@ enum {
G_DEFINE_TYPE (NetVpn, net_vpn, NET_TYPE_OBJECT)
static void nm_device_refresh_vpn_ui (NetVpn *vpn);
void
net_vpn_set_show_separator (NetVpn *self,
gboolean show_separator)
@ -66,6 +68,7 @@ connection_changed_cb (NMConnection *connection,
NetVpn *vpn)
{
net_object_emit_changed (NET_OBJECT (vpn));
nm_device_refresh_vpn_ui (vpn);
}
static void