[gnome-control-center/wip/carlosg/vpn-restore-empty-label] network: Update VPN empty label status after removing VPN connection



commit 2ff526ecfb190afbc17c4b1b66841a6f6742b90b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Dec 12 22:43:15 2019 +0100

    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.

 panels/network/cc-network-panel.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 06a5ed9d2..fc97fbca8 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -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;
                 }
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]