|
|
|
@ -230,20 +230,45 @@ gboolean yon_advanced_part_save(main_window *widgets){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(part1->SystemSectionToggle))){
|
|
|
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(part1->SystemSectionToggle))){
|
|
|
|
if (!yon_advanced_part_save_part(data1)&&!yon_advanced_part_save_part(data2)){
|
|
|
|
if (!yon_advanced_part_save_part(data1)&&!yon_advanced_part_save_part(data2)){
|
|
|
|
|
|
|
|
yon_config_remove_by_args(device_parameter,
|
|
|
|
|
|
|
|
device_parameter,
|
|
|
|
|
|
|
|
part_parameter,
|
|
|
|
|
|
|
|
part_size_parameter,
|
|
|
|
|
|
|
|
part_label_parameter,
|
|
|
|
|
|
|
|
part_fs_type_parameter,
|
|
|
|
|
|
|
|
part_fs_label_parameter,
|
|
|
|
|
|
|
|
part_crypt_parameter,
|
|
|
|
|
|
|
|
part_format_parameter,
|
|
|
|
|
|
|
|
NULL);
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
yon_advanced_part_save_part(data2);
|
|
|
|
if (!yon_advanced_part_save_part(data2)&&!yon_advanced_part_save_part(data1)) {
|
|
|
|
yon_advanced_part_save_part(data1);
|
|
|
|
yon_config_remove_by_args(device_parameter,
|
|
|
|
|
|
|
|
device_parameter,
|
|
|
|
|
|
|
|
part_parameter,
|
|
|
|
|
|
|
|
part_size_parameter,
|
|
|
|
|
|
|
|
part_label_parameter,
|
|
|
|
|
|
|
|
part_fs_type_parameter,
|
|
|
|
|
|
|
|
part_fs_label_parameter,
|
|
|
|
|
|
|
|
part_crypt_parameter,
|
|
|
|
|
|
|
|
part_format_parameter,
|
|
|
|
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(widgets->StatusBox),NOTHING_CHOSEN_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int yon_advanced_save(main_window *widgets){
|
|
|
|
int yon_advanced_save(main_window *widgets){
|
|
|
|
yon_config_register(AUTOINSTALL_TYPE_INSTALL,AUTOINSTALL_TYPE_INSTALL_command,"custom");
|
|
|
|
yon_config_register(AUTOINSTALL_TYPE_INSTALL,AUTOINSTALL_TYPE_INSTALL_command,"custom");
|
|
|
|
yon_advanced_part_clean_config();
|
|
|
|
yon_advanced_part_clean_config();
|
|
|
|
yon_advanced_part_save(widgets);
|
|
|
|
if (!yon_advanced_part_save(widgets)){
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (gtk_switch_get_active(GTK_SWITCH(widgets->AdvancedLoadTypeSwitch))){
|
|
|
|
if (gtk_switch_get_active(GTK_SWITCH(widgets->AdvancedLoadTypeSwitch))){
|
|
|
|
char *boot = NULL;
|
|
|
|
char *boot = NULL;
|
|
|
|
if (gtk_switch_get_active(GTK_SWITCH(widgets->AdvancedBiosSectorSwitch))){
|
|
|
|
if (gtk_switch_get_active(GTK_SWITCH(widgets->AdvancedBiosSectorSwitch))){
|
|
|
|
|