Wordlists that are already in the DB will not be imported again.

This commit is contained in:
ruri
2019-10-01 19:01:30 +02:00
parent c495189a11
commit fb0ab8f0c7
@@ -88,6 +88,12 @@ namespace OpenBullet
public void AddWordlist(Wordlist wordlist)
{
if (vm.WordlistList.Any(w => w.Path == wordlist.Path))
{
Globals.LogError(Components.WordlistManager, $"Wordlist already present: {wordlist.Path}");
return;
}
vm.WordlistList.Add(wordlist);
AddWordlistToDB(wordlist);
}