|
|
@ -92,6 +92,12 @@ void on_save_parameters(GtkWidget *self, saving_window *window){
|
|
|
|
saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
|
|
|
|
saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
|
|
|
|
if (((type==YON_CONFIG_LOCAL&& main_config.load_mode==1)||(type==YON_CONFIG_GLOBAL&& main_config.load_mode==0))){
|
|
|
|
if (((type==YON_CONFIG_LOCAL&& main_config.load_mode==1)||(type==YON_CONFIG_GLOBAL&& main_config.load_mode==0))){
|
|
|
|
yon_config_save_registered(path);
|
|
|
|
yon_config_save_registered(path);
|
|
|
|
|
|
|
|
if (type == YON_CONFIG_GLOBAL)
|
|
|
|
|
|
|
|
yon_ubl_status_box_render(GLOBAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
|
|
|
else if (type == YON_CONFIG_LOCAL)
|
|
|
|
|
|
|
|
yon_ubl_status_box_render(LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
|
|
|
else if (type == YON_CONFIG_BOTH)
|
|
|
|
|
|
|
|
yon_ubl_status_box_render(GLOBAL_LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
char *config_to_save = NULL;
|
|
|
|
char *config_to_save = NULL;
|
|
|
|