From dbcab7784bd529e69b977063ea5595e3b91c5212 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Wed, 1 Apr 2026 10:14:42 +0600 Subject: [PATCH] Active kernel loading fix --- source/ubinstall-gtk-components.c | 6 +++--- source/ubinstall-gtk-kernel.c | 2 +- source/ubinstall-gtk.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/ubinstall-gtk-components.c b/source/ubinstall-gtk-components.c index b6246b1..e725c7b 100644 --- a/source/ubinstall-gtk-components.c +++ b/source/ubinstall-gtk-components.c @@ -20,9 +20,9 @@ int yon_kernel_save(main_window *widgets){ yon_config_append_elements(packages_parameter,append_str,","); free(append_str); active_size++; - if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(row->EnableRadio))){ - enabled_module = row->package; - } + } + if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(row->EnableRadio))){ + enabled_module = row->package; } } else { char *append_str = yon_char_replace(row->modules," ",","); diff --git a/source/ubinstall-gtk-kernel.c b/source/ubinstall-gtk-kernel.c index 5707288..b056a3a 100644 --- a/source/ubinstall-gtk-kernel.c +++ b/source/ubinstall-gtk-kernel.c @@ -244,7 +244,7 @@ void yon_kernel_init(main_window *widgets){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(row->InstallCheck),1); gtk_widget_set_sensitive(row->InstallCheck,0); } - if (!yon_char_is_empty(enabled)&&(!strcmp(package,enabled)||!yon_char_check_element(modules,enabled," "))){ + if (!yon_char_is_empty(enabled)&&(!strcmp(package,enabled)||yon_char_check_element(modules,enabled," "))){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(row->EnableRadio),1); } yon_char_parsed_free(parsed,parsed_size); diff --git a/source/ubinstall-gtk.h b/source/ubinstall-gtk.h index 4904a72..8fff4ff 100755 --- a/source/ubinstall-gtk.h +++ b/source/ubinstall-gtk.h @@ -1470,7 +1470,7 @@ void *yon_maximize(main_window *widgets); kernel_addon_row *yon_kernel_addon_row_new(); void yon_kernel_addon_row_setup(kernel_addon_row *row, char *name, char *modules, char *package, char *description); void on_kernel_addon_install_enabled(GtkWidget *, kernel_addon_row *row); -void on_kernel_addon_info(GtkLabel *self); +void on_kernel_addon_info(GtkLabel *self, kernel_addon_row *row); void yon_license_init(main_window *widgets); void on_locale_toggle(GtkCellRenderer *, gchar *path, language_window *window); void on_locale_accept(GtkWidget *self, language_window *window);