Fixed configuration restoring at exit at configuration mode

pull/300/head
parent c17ffc5d4a
commit def1a27ca3

@ -233,7 +233,8 @@ void on_exit_accepted(main_window *widgets){
pthread_cancel((pthread_t)main_config.install_thread);
g_mutex_unlock(&main_config.install_mutex);
}
yon_config_restore(widgets);
if (!main_config.configure_mode)
yon_config_restore(widgets);
main_config.exit_accepted=1;
while(gtk_events_pending()) gtk_main_iteration();
}
@ -889,15 +890,7 @@ void yon_main_window_create(main_window *widgets){
}
if (main_config.force_ini){
while(gtk_events_pending()) gtk_main_iteration();
if (yon_configuration_path_check(main_config.config_save_path)){
GList *box = gtk_container_get_children(GTK_CONTAINER(widgets->ConfigurationModeMenuItem));
GList *children = gtk_container_get_children(GTK_CONTAINER(box->data));
GtkWidget *Check = GTK_WIDGET(g_list_nth_data(children,1));
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(Check),1);
yon_ubl_status_box_spawn(GTK_CONTAINER(widgets->StatusBox),CONFIGURATION_MODE_STATUS_LABEL,0,BACKGROUND_IMAGE_INFO_TYPE);
yon_ubl_status_box_spawn(GTK_CONTAINER(widgets->StatusBox2),CONFIG_PATH_LABEL(main_config.config_save_path),0,BACKGROUND_IMAGE_INFO_TYPE);
} else {
if (!yon_configuration_path_check(main_config.config_save_path)){
exit (1);
}
}

Loading…
Cancel
Save