Fixed custom config loading

pull/58/head
Ivan Dmitrievich Yartsev 11 months ago
parent 8e42053d45
commit d6fecf5e70

@ -28,7 +28,9 @@ void on_save_done(main_window *, config_str output, int size){
}
void yon_load_proceed(YON_CONFIG_TYPE type){
yon_config_clean();
if (type!=YON_CONFIG_CUSTOM){
yon_config_clean();
}
if (!yon_char_is_empty(config_get_default_command))
yon_config_load_config(YON_CONFIG_DEFAULT,config_get_default_command,NULL);
if (type==YON_CONFIG_GLOBAL){
@ -57,6 +59,7 @@ void yon_load_proceed(YON_CONFIG_TYPE type){
} else {
gtk_widget_destroy(dialog);
}
yon_config_clean();
char *command = yon_config_get_custom_command(path);
yon_config_load_config(type,command,NULL);
}

Loading…
Cancel
Save