From dae8c8b17ac296f7a38acf913b6788eba4835f9e Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 25 Dec 2025 18:39:41 +0000 Subject: [PATCH] Return of auto value for modules --- source/ubinstall-gtk-components.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/ubinstall-gtk-components.c b/source/ubinstall-gtk-components.c index 30f8463..2f46b4f 100644 --- a/source/ubinstall-gtk-components.c +++ b/source/ubinstall-gtk-components.c @@ -54,6 +54,7 @@ int yon_os_components_save(main_window *widgets){ GList *list = gtk_container_get_children(GTK_CONTAINER(widgets->OSSoftwareListBox)); GList *iter; int size; + int overall_num=0; config_str modules = NULL; for(iter = list;iter;iter=iter->next){ os_row *row = g_object_get_data(iter->data,"kernel_row"); @@ -62,9 +63,12 @@ int yon_os_components_save(main_window *widgets){ if (status){ yon_char_parsed_add_or_create_if_exists(modules,&size,target); } + overall_num++; } g_list_free(list); - if (size){ + if (size&&size==overall_num){ + yon_config_register(modules_parameter,modules_parameter_command,"auto"); + } else if (size){ char *final = yon_char_parsed_to_string(modules,size,","); yon_config_register(modules_parameter,modules_parameter_command,final); } else {