From cd8239959215db3bc7096bcb03d240abaa4db11a Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Fri, 17 Apr 2026 11:00:12 +0600 Subject: [PATCH] Fixed scenario button visibility --- source/ubinstall-gtk-saving.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/ubinstall-gtk-saving.c b/source/ubinstall-gtk-saving.c index feadb33..17c8531 100644 --- a/source/ubinstall-gtk-saving.c +++ b/source/ubinstall-gtk-saving.c @@ -62,25 +62,28 @@ void on_config_local_load(GtkWidget *,main_window *widgets){ yon_load_proceed(YON_CONFIG_LOCAL); main_config.load_mode=YON_CONFIG_LOCAL; yon_main_window_update_locale(widgets); - yon_page_init(widgets,gtk_notebook_get_current_page(GTK_NOTEBOOK(widgets->Notebook))); + yon_navigation_buttons_set_sensetiveness(widgets); } -void on_config_custom_load(GtkWidget *,main_window *){ +void on_config_custom_load(GtkWidget *,main_window *widgets){ char *temp_custom_path = NULL; yon_load_proceed(YON_CONFIG_CUSTOM); if (!yon_char_is_empty(main_config.config_load_path)){ main_config.load_mode=YON_CONFIG_CUSTOM; free(temp_custom_path); } + yon_navigation_buttons_set_sensetiveness(widgets); } -void on_config_custom_load_last(GtkWidget *,main_window *){ +void on_config_custom_load_last(GtkWidget *,main_window *widgets){ yon_config_clean(); if (!yon_char_is_empty(config_get_default_command)) yon_config_load_config(YON_CONFIG_DEFAULT,config_get_default_command,NULL); char *command = config_get_command(main_config.config_load_path); yon_config_load_config(YON_CONFIG_CUSTOM,command,NULL); main_config.load_mode=YON_CONFIG_CUSTOM; + int page = gtk_notebook_get_current_page(GTK_NOTEBOOK(widgets->Notebook)); + yon_page_init(widgets,page); } void on_config_global_local_save(GtkWidget *,main_window *widgets){