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 {