Remove ValidationFail books from queue display. Nothing to see there.
This commit is contained in:
parent
d18d8c0ba4
commit
5b05c018d5
@ -171,12 +171,16 @@ namespace LibationWinForms.ProcessQueue
|
||||
|
||||
if (result == ProcessBookResult.FailedRetry)
|
||||
Queue.Enqueue(nextBook);
|
||||
else if (result == ProcessBookResult.ValidationFail)
|
||||
Queue.ClearCurrent();
|
||||
else if (result == ProcessBookResult.FailedAbort)
|
||||
return;
|
||||
}
|
||||
|
||||
Queue_CompletedCountChanged(this, 0);
|
||||
counterTimer.Stop();
|
||||
virtualFlowControl2.VirtualControlCount = Queue.Count;
|
||||
UpdateAllControls();
|
||||
}
|
||||
|
||||
public void WriteLine(string text)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user