|
|
|
|
@ -233,6 +233,7 @@ void on_exit_accepted(main_window *widgets){
|
|
|
|
|
pthread_cancel((pthread_t)main_config.install_thread);
|
|
|
|
|
g_mutex_unlock(&main_config.install_mutex);
|
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|