Fixed custom config loading

pull/59/head
parent 7164d7c066
commit 85b2e56e85

@ -5,7 +5,9 @@ config main_config;
//functions
int 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){
@ -31,12 +33,13 @@ int yon_load_proceed(YON_CONFIG_TYPE type){
path=yon_char_unite("'",file,"'",NULL);
main_config.custom_load_path = path;
}
yon_config_clean();
yon_config_load_config(type,config_get_command(path),NULL);
gtk_widget_destroy(dialog);
} else {
gtk_widget_destroy(dialog);
return 0;
}
yon_config_load_config(type,config_get_command(path),NULL);
}
return 1;

Loading…
Cancel
Save