Fixed loading cancelation of custom configuration

pull/80/head
Ivan Dmitrievich Yartsev 11 months ago
parent 5ee2e7ec39
commit e189e6d291

@ -30,7 +30,9 @@ void on_save_done(main_window *widgets, config_str output, int size){
}
void yon_load_proceed(YON_CONFIG_TYPE type){
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){
@ -59,6 +61,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