Remove ValidationFail books from queue display. Nothing to see there.

This commit is contained in:
Michael Bucari-Tovo 2022-05-14 20:00:23 -06:00
parent d18d8c0ba4
commit 5b05c018d5
2 changed files with 21 additions and 0 deletions

View file

@ -94,6 +94,23 @@ namespace LibationWinForms.ProcessQueue
}
}
public void ClearCurrent()
{
lock(lockObject)
Current = null;
}
public bool RemoveCompleted(T item)
{
lock (lockObject)
{
bool removed = _completed.Remove(item);
if (removed)
CompletedCountChanged?.Invoke(this, _completed.Count);
return removed;
}
}
public void ClearQueue()
{
lock (lockObject)