From 61471f281813107fb0464e8c023f1cffa86f5731 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Thu, 24 May 2018 18:13:40 +0200 Subject: 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. --- panels/network/net-vpn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c index bf653bad3..920db0773 100644 --- a/panels/network/net-vpn.c +++ b/panels/network/net-vpn.c @@ -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 -- cgit v1.2.1