Saving of global and local config were fixed

pull/101/head
Ivan Yartsev 2 years ago
parent 22a3854135
commit 7ccfddcae9

@ -80,6 +80,13 @@ void on_save_parameters(GtkWidget *self, saving_window *window){
free(final_command); free(final_command);
} }
} }
if (window->type==YON_CONFIG_BOTH) {
if (main_config.load_mode==1){
yon_config_save_registered("system");
} else if (main_config.load_mode==0){
yon_config_save_registered("global");
}
}
if (window->type == YON_CONFIG_GLOBAL) if (window->type == 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);
else if (window->type == YON_CONFIG_LOCAL) else if (window->type == YON_CONFIG_LOCAL)
@ -108,10 +115,8 @@ saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
else if (type==YON_CONFIG_BOTH) { else if (type==YON_CONFIG_BOTH) {
if (main_config.load_mode==1){ if (main_config.load_mode==1){
config_to_save="global"; config_to_save="global";
yon_config_save_registered("system");
} else if (main_config.load_mode==0){ } else if (main_config.load_mode==0){
config_to_save="system"; config_to_save="system";
yon_config_save_registered("global");
} }
} }
config_str config_compare=NULL; config_str config_compare=NULL;

Loading…
Cancel
Save