From fc6f9b2f4228b9a0229c10a1a49280f2cdf5ad61 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 5 Jul 2024 20:11:15 +0600 Subject: [PATCH] Test fir for unswitching --- source/ubinstall-gtk.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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;