diff --git a/source/ubinstall-gtk-components.c b/source/ubinstall-gtk-components.c index d3c13cc..ee5bc3f 100644 --- a/source/ubinstall-gtk-components.c +++ b/source/ubinstall-gtk-components.c @@ -79,6 +79,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"); @@ -87,9 +88,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 {