|
|
|
@ -13,11 +13,15 @@ int yon_region_save(main_window *widgets){
|
|
|
|
yon_ubl_status_highlight_incorrect(widgets->ZoneCombo);
|
|
|
|
yon_ubl_status_highlight_incorrect(widgets->ZoneCombo);
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const char *region = gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->RegionCombo));
|
|
|
|
if (gtk_switch_get_active(GTK_SWITCH(widgets->RegionSensitiveSwitch))){
|
|
|
|
const char *zone = gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->ZoneCombo));
|
|
|
|
const char *region = gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->RegionCombo));
|
|
|
|
char *final = yon_char_unite(region,"/",zone,NULL);
|
|
|
|
const char *zone = gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->ZoneCombo));
|
|
|
|
yon_config_register(zone_parameter,zone_parameter_command,final);
|
|
|
|
char *final = yon_char_unite(region,"/",zone,NULL);
|
|
|
|
free(final);
|
|
|
|
yon_config_register(zone_parameter,zone_parameter_command,final);
|
|
|
|
|
|
|
|
free(final);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
yon_config_remove_by_key(zone_parameter);
|
|
|
|
|
|
|
|
}
|
|
|
|
if (!main_config.configure_mode){
|
|
|
|
if (!main_config.configure_mode){
|
|
|
|
yon_debug_output("%s\n",yon_config_save_args_simple(main_config.config_load_path,zone_parameter,NULL));
|
|
|
|
yon_debug_output("%s\n",yon_config_save_args_simple(main_config.config_load_path,zone_parameter,NULL));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|