network: Update VPN empty label status after removing VPN connection

Being the VPN list actually a collection of listboxes, this function
ensures it looks alright in other places. However the case of removing
all VPN connections till we're back empty was missed.
This commit is contained in:
Carlos Garnacho 2019-12-12 22:43:15 +01:00
parent 9f018a2d62
commit 2ff526ecfb

View file

@ -620,6 +620,7 @@ client_connection_removed_cb (CcNetworkPanel *self, NMConnection *connection)
if (net_vpn_get_connection (vpn) == connection) {
g_ptr_array_remove (self->vpns, vpn);
gtk_widget_destroy (GTK_WIDGET (vpn));
update_vpn_section (self);
return;
}
}