From fd0ee278fbc4a15f2cbb1d37c9756904c0c823a9 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Fri, 6 Mar 2026 18:14:17 +0600 Subject: [PATCH] Fixed configuration mode cancel --- source/ubinstall-gtk-configuration-mode.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/ubinstall-gtk-configuration-mode.c b/source/ubinstall-gtk-configuration-mode.c index fa78c54..6bed3fc 100644 --- a/source/ubinstall-gtk-configuration-mode.c +++ b/source/ubinstall-gtk-configuration-mode.c @@ -98,7 +98,11 @@ void on_configuration_mode_switch(GtkWidget *,main_window *widgets){ yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),ROOT_FORCE_CONFIGURATION_MODE_LABEL,0,BACKGROUND_IMAGE_INFO_TYPE); } - if (!yon_char_is_empty(main_config.config_save_path)) gtk_entry_set_text(GTK_ENTRY(window->PathEntry),main_config.config_save_path); + if (!yon_char_is_empty(main_config.config_save_path)) { + gtk_entry_set_text(GTK_ENTRY(window->PathEntry),main_config.config_save_path); + free(main_config.config_save_path); + main_config.config_save_path = NULL; + } gtk_widget_show(window->Window); gtk_main();