Improve UI speed when adding many books to queue at once.
This commit is contained in:
parent
0729e4ab09
commit
9c6211e8e0
2 changed files with 63 additions and 6 deletions
|
|
@ -226,5 +226,14 @@ namespace LibationWinForms.ProcessQueue
|
|||
QueuededCountChanged?.Invoke(this, _queued.Count);
|
||||
}
|
||||
}
|
||||
|
||||
public void Enqueue(IEnumerable<T> item)
|
||||
{
|
||||
lock (lockObject)
|
||||
{
|
||||
_queued.AddRange(item);
|
||||
QueuededCountChanged?.Invoke(this, _queued.Count);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue