|
|
|
@ -369,15 +369,18 @@ void on_save_done(main_window *, config_str output, int size){
|
|
|
|
yon_char_parsed_free(output,size);
|
|
|
|
yon_char_parsed_free(output,size);
|
|
|
|
textdomain(template_ui_LocaleName);
|
|
|
|
textdomain(template_ui_LocaleName);
|
|
|
|
switch (main_config.save_config){
|
|
|
|
switch (main_config.save_config){
|
|
|
|
case 0:
|
|
|
|
case YON_CONFIG_GLOBAL:
|
|
|
|
yon_ubl_status_box_render(GLOBAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
yon_ubl_status_box_render(GLOBAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
case YON_CONFIG_LOCAL:
|
|
|
|
yon_ubl_status_box_render(LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
yon_ubl_status_box_render(LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
case YON_CONFIG_BOTH:
|
|
|
|
yon_ubl_status_box_render(GLOBAL_LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
yon_ubl_status_box_render(GLOBAL_LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case YON_CONFIG_CUSTOM:
|
|
|
|
|
|
|
|
yon_ubl_status_box_render(SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
textdomain(LocaleName);
|
|
|
|
textdomain(LocaleName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -657,20 +660,20 @@ void on_config_custom_load(GtkWidget *self,main_window *){
|
|
|
|
|
|
|
|
|
|
|
|
void on_config_global_local_save(){
|
|
|
|
void on_config_global_local_save(){
|
|
|
|
yon_interface_save();
|
|
|
|
yon_interface_save();
|
|
|
|
main_config.save_config=3;
|
|
|
|
main_config.save_config=YON_CONFIG_BOTH;
|
|
|
|
yon_save_proceed(NULL,YON_CONFIG_BOTH,config_get_command("global"),NULL);
|
|
|
|
yon_save_proceed(NULL,YON_CONFIG_BOTH,config_get_command("global"),NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_config_local_save(){
|
|
|
|
void on_config_local_save(){
|
|
|
|
yon_interface_save();
|
|
|
|
yon_interface_save();
|
|
|
|
main_config.save_config=1;
|
|
|
|
main_config.save_config=YON_CONFIG_LOCAL;
|
|
|
|
yon_save_proceed("system",YON_CONFIG_LOCAL,config_get_command("system"),NULL);
|
|
|
|
yon_save_proceed("system",YON_CONFIG_LOCAL,config_get_command("system"),NULL);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_config_global_save(){
|
|
|
|
void on_config_global_save(){
|
|
|
|
yon_interface_save();
|
|
|
|
yon_interface_save();
|
|
|
|
main_config.save_config=0;
|
|
|
|
main_config.save_config=YON_CONFIG_GLOBAL;
|
|
|
|
yon_save_proceed("global",YON_CONFIG_GLOBAL,config_get_command("global"),NULL);
|
|
|
|
yon_save_proceed("global",YON_CONFIG_GLOBAL,config_get_command("global"),NULL);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -678,7 +681,7 @@ void on_config_global_save(){
|
|
|
|
void on_config_custom_save(GtkWidget *self, main_window *widgets){
|
|
|
|
void on_config_custom_save(GtkWidget *self, main_window *widgets){
|
|
|
|
yon_interface_save();
|
|
|
|
yon_interface_save();
|
|
|
|
if (self&&widgets){}
|
|
|
|
if (self&&widgets){}
|
|
|
|
main_config.save_config=1;
|
|
|
|
main_config.save_config=YON_CONFIG_CUSTOM;
|
|
|
|
template_saving_window *window = yon_save_proceed(NULL,YON_CONFIG_CUSTOM,config_get_command("system"),NULL);
|
|
|
|
template_saving_window *window = yon_save_proceed(NULL,YON_CONFIG_CUSTOM,config_get_command("system"),NULL);
|
|
|
|
if (window){};
|
|
|
|
if (window){};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|