Fixed custom config loading

pull/63/head
Ivan Dmitrievich Yartsev 10 months ago
parent d2324a5fe2
commit 07d7e0c01b

@ -55,13 +55,13 @@ void yon_load_proceed(YON_CONFIG_TYPE type){
if (!yon_char_is_empty(file)){ if (!yon_char_is_empty(file)){
path=file; path=file;
} }
yon_config_clean();
char *command = yon_config_get_custom_command(path);
yon_config_load_config(type,command,NULL);
gtk_widget_destroy(dialog); gtk_widget_destroy(dialog);
} else { } else {
gtk_widget_destroy(dialog); 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