|
|
|
@ -7,12 +7,12 @@ int yon_bootloader_save(main_window *widgets){
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
yon_config_remove_by_key(GRUB_TIMEOUT_parameter);
|
|
|
|
yon_config_remove_by_key(GRUB_TIMEOUT_parameter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
char *OS = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->BootloadDefaultOSEntry));
|
|
|
|
// char *OS = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->BootloadDefaultOSEntry));
|
|
|
|
if (strcmp(OS,DEFAULT_BOOTLOAD_MENU_ITEM_LABEL)){
|
|
|
|
// if (strcmp(OS,DEFAULT_BOOTLOAD_MENU_ITEM_LABEL)){
|
|
|
|
yon_config_register(GRUB_DEFAULT_parameter,GRUB_DEFAULT_parameter_command,OS);
|
|
|
|
// yon_config_register(GRUB_DEFAULT_parameter,GRUB_DEFAULT_parameter_command,OS);
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
yon_config_remove_by_key(GRUB_DEFAULT_parameter);
|
|
|
|
// yon_config_remove_by_key(GRUB_DEFAULT_parameter);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (gtk_switch_get_active(GTK_SWITCH(widgets->BootloadNoPasswordSwitch))){
|
|
|
|
if (gtk_switch_get_active(GTK_SWITCH(widgets->BootloadNoPasswordSwitch))){
|
|
|
|
GtkTreeIter iter;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
yon_config_register(AUTOLOGINUSER_parameter,AUTOLOGINUSER_parameter_command,"yes");
|
|
|
|
yon_config_register(AUTOLOGINUSER_parameter,AUTOLOGINUSER_parameter_command,"yes");
|
|
|
|
|