From 5c487b7297304cda1637babc76e2094916844eec Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Tue, 9 Sep 2025 17:56:10 +0600 Subject: [PATCH] Fixes --- source/ubinstall-gtk-page-switch.c | 22 +++++++++++++++++++++- source/ubinstall-gtk.c | 1 + ubinstall-gtk-source.glade | 6 ++++++ ubinstall-gtk.glade | 11 ++++++++--- 4 files changed, 36 insertions(+), 4 deletions(-) diff --git a/source/ubinstall-gtk-page-switch.c b/source/ubinstall-gtk-page-switch.c index f0b2c58..af86c32 100644 --- a/source/ubinstall-gtk-page-switch.c +++ b/source/ubinstall-gtk-page-switch.c @@ -127,7 +127,23 @@ void yon_navigation_buttons_set_sensetiveness(main_window *widgets){ gtk_widget_set_sensitive(widgets->NextButton,1); gtk_widget_set_sensitive(widgets->CancelInstallButton,1); break; + } + switch(page){ + case YON_PAGE_KERNEL: + case YON_PAGE_KERNEL_ADDON: + case YON_PAGE_PACMAN_SOFTWARE: + case YON_PAGE_REGION: + case YON_PAGE_KEYBOARD: + case YON_PAGE_USERS: + case YON_PAGE_STARTUP: + case YON_PAGE_BOOTLOADER: + case YON_PAGE_NETWORK: + gtk_widget_show(widgets->SkipInstallationButton); + break; + default: + gtk_widget_hide(widgets->SkipInstallationButton); + } } int yon_page_save(main_window *widgets, enum YON_PAGES page){ @@ -412,6 +428,10 @@ void on_page_cancel_clicked(GtkWidget *, main_window *widgets){ } void on_system_setup_pass(GtkWidget *, main_window *widgets){ - gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_INSTALLATION); + if (main_config.configure_mode){ + gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_CONFIGURE_END); + } else { + gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_INSTALLATION); + } yon_page_update(widgets); } \ No newline at end of file diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index dab1c53..ce6fbd2 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -214,6 +214,7 @@ source_window *yon_source_window_new(){ g_signal_connect(G_OBJECT(window->AddButton),"clicked",G_CALLBACK(on_source_add),window); g_signal_connect(G_OBJECT(window->PathButton),"clicked",G_CALLBACK(on_source_choose),window); g_signal_connect(G_OBJECT(window->AutoSwitch),"state-set",G_CALLBACK(yon_gtk_widget_set_sensitive_from_switch_inversed),window->AddBox); + g_signal_connect(G_OBJECT(window->AutoSwitch),"state-set",G_CALLBACK(yon_gtk_widget_set_sensitive_from_switch_inversed),window->TypeCombo); g_signal_connect(G_OBJECT(window->AutoSwitch),"state-set",G_CALLBACK(yon_gtk_widget_set_sensitive_from_switch_inversed),window->AddButton); g_signal_connect(G_OBJECT(window->AutoSwitch),"state-set",G_CALLBACK(yon_gtk_widget_set_sensitive_from_switch_inversed),window->PathButton); g_signal_connect(G_OBJECT(window->AutoSwitch),"state-set",G_CALLBACK(yon_gtk_widget_set_sensitive_from_switch_inversed),window->PathEntry); diff --git a/ubinstall-gtk-source.glade b/ubinstall-gtk-source.glade index e1848e1..6f95c26 100644 --- a/ubinstall-gtk-source.glade +++ b/ubinstall-gtk-source.glade @@ -92,6 +92,7 @@ True True + True False @@ -141,6 +142,7 @@ True + False False 0 @@ -158,6 +160,7 @@ True + False True @@ -169,6 +172,7 @@ True + False True True image1 @@ -185,6 +189,7 @@ True + False True True image2 @@ -208,6 +213,7 @@ True + False False vertical 5 diff --git a/ubinstall-gtk.glade b/ubinstall-gtk.glade index 3d9feb4..cc601d0 100644 --- a/ubinstall-gtk.glade +++ b/ubinstall-gtk.glade @@ -371,6 +371,14 @@ + + + True + False + Enable VNC server + True + + True @@ -10532,7 +10540,6 @@ separately into the selected partition. Start installation scenario - True True True @@ -10545,7 +10552,6 @@ separately into the selected partition. Source - True True True @@ -10558,7 +10564,6 @@ separately into the selected partition. Skip installation - True True True