Fixed wrong repostirory parameter name for removing from config

pull/59/head
parent 0b64e43419
commit 721cf2fd18

@ -1127,7 +1127,7 @@ void on_repo_accept_clicked(GtkWidget *, dictionary *dict){
char *final = yon_char_unite(sources,";",sign_level,";",usage,";",enabled?"":"disable",NULL);
if (!yon_char_is_empty(window->name)&&strcmp(repo_name,window->name)){
yon_config_remove_by_key(REOSITORY_command(window->name));
yon_config_remove_by_key(REPOSITORY(window->name));
}
yon_config_register(REPOSITORY(repo_name),REOSITORY_command(repo_name),final);
yon_interface_update(widgets);

Loading…
Cancel
Save