mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-14 23:37:54 +02:00
dont add duplicates
This commit is contained in:
@ -232,7 +232,10 @@ public class TaskManager
|
||||
{
|
||||
Publication[] ret = connector.GetPublications(title ?? "");
|
||||
foreach (Publication publication in ret)
|
||||
{
|
||||
if(!_chapterCollection.Any(pub => pub.Key.sortName == publication.sortName))
|
||||
this._chapterCollection.TryAdd(publication, new List<Chapter>());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user