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
This commit is contained in:
Mohammed Sadiq 2019-09-23 18:08:04 +05:30
parent 82f13e848a
commit a049ccc663

View file

@ -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;