From def1a27ca31383b7d8049debd1a948151bc73979 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 19 Mar 2026 15:48:46 +0600 Subject: [PATCH] Fixed configuration restoring at exit at configuration mode --- source/ubinstall-gtk.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index fe82770..bacf1ea 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -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); } }