diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index f8d2a9d..cb2f33e 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -328,12 +328,14 @@ void *on_config_save(void *){ void *yon_installation_start(main_window *widgets); void *yon_installation_start(main_window *widgets){ - if (system(start_fast_install_command)){ - yon_ubl_status_box_spawn(GTK_CONTAINER(widgets->StatusBox),INSTALLATION_ERROR,5,BACKGROUND_IMAGE_FAIL_TYPE); - } - // main_config.install_thread=NULL; - main_config.install_complete=1; + if (!main_config.install_complete){ + if (system(start_fast_install_command)){ + yon_ubl_status_box_spawn(GTK_CONTAINER(widgets->StatusBox),INSTALLATION_ERROR,5,BACKGROUND_IMAGE_FAIL_TYPE); + } + main_config.install_thread=NULL; + main_config.install_complete=1; gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_COMPLETION); + } g_thread_exit(NULL); return NULL;