diff --git a/source/ubinstall-gtk-configuration-mode.c b/source/ubinstall-gtk-configuration-mode.c index 7fc9e84..fa78c54 100644 --- a/source/ubinstall-gtk-configuration-mode.c +++ b/source/ubinstall-gtk-configuration-mode.c @@ -119,10 +119,9 @@ void on_configuration_mode_switch(GtkWidget *,main_window *widgets){ gtk_widget_destroy(window->Window); } else { + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->ConfigurationModeCheck),0); yon_ubl_status_box_despawn(GTK_CONTAINER(widgets->StatusBox)); - GList *revealerlist = gtk_container_get_children(GTK_CONTAINER(widgets->StatusBox2)); - gtk_widget_destroy(GTK_WIDGET(g_list_nth_data(revealerlist,0))); - g_list_free(revealerlist); + yon_ubl_status_box_despawn(GTK_CONTAINER(widgets->StatusBox2)); main_config.configure_mode = 0; }