[gnome-control-center] wifi: Always reset hotspot network label before updating



commit a049ccc663fb18e8b720539e08a02da9cb65cf8f
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Mon Sep 23 18:08:04 2019 +0530

    wifi: Always reset hotspot network label before updating
    
    As the hotspot dialog is reused, we have to reset the connection label
    everytime it’s shown. Otherwise obsolete informations shall be shown
    if there isn't any active connection

 panels/network/cc-wifi-hotspot-dialog.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/panels/network/cc-wifi-hotspot-dialog.c b/panels/network/cc-wifi-hotspot-dialog.c
index 2374ae156..6c5e1fd23 100644
--- a/panels/network/cc-wifi-hotspot-dialog.c
+++ b/panels/network/cc-wifi-hotspot-dialog.c
@@ -110,6 +110,8 @@ wifi_hotspot_dialog_update_main_label (CcWifiHotspotDialog *self)
 
   g_assert (CC_IS_WIFI_HOTSPOT_DIALOG (self));
 
+  gtk_label_set_markup (self->connection_label, "");
+
   if (!self->device)
     return;
 


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