From 2e04f34506c978540fa17796534d7903573b7282 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Mon, 26 Jan 2026 15:04:52 +0600 Subject: [PATCH] Back button hidden at finish pages --- source/ubinstall-gtk-page-switch.c | 2 +- source/ubinstall-gtk.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/source/ubinstall-gtk-page-switch.c b/source/ubinstall-gtk-page-switch.c index e4dbb44..0887f18 100644 --- a/source/ubinstall-gtk-page-switch.c +++ b/source/ubinstall-gtk-page-switch.c @@ -170,7 +170,7 @@ void yon_navigation_buttons_set_sensetiveness(main_window *widgets){ case YON_PAGE_CONFIGURE_SAVE: case YON_PAGE_COMPLETION: gtk_button_set_label(GTK_BUTTON(widgets->NextButton),RESTART_LABEL); - gtk_widget_set_sensitive(widgets->BackButton,0); + gtk_widget_hide(widgets->BackButton); gtk_widget_set_sensitive(widgets->CancelInstallButton,1); gtk_button_set_label(GTK_BUTTON(widgets->CancelInstallButton),EXIT_LABEL); gtk_widget_set_sensitive(widgets->NextButton,1); diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index 2cd813d..c729aff 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -971,7 +971,6 @@ void yon_main_window_create(main_window *widgets){ if (getuid()){ gtk_menu_item_activate(GTK_MENU_ITEM(widgets->ConfigurationModeMenuItem)); if (yon_char_is_empty(main_config.config_save_path)){ - gtk_main_quit(); exit (1); } } @@ -985,7 +984,6 @@ void yon_main_window_create(main_window *widgets){ yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(widgets->StatusBox),"config_mode",CONFIGURATION_MODE_STATUS_LABEL,BACKGROUND_IMAGE_INFO_TYPE); yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(widgets->StatusBox2),"config_mede",CONFIG_PATH_LABEL(main_config.config_save_path),BACKGROUND_IMAGE_INFO_TYPE); } else { - gtk_main_quit(); exit (1); } }