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)
|
if (result == ProcessBookResult.FailedRetry)
|
||||||
Queue.Enqueue(nextBook);
|
Queue.Enqueue(nextBook);
|
||||||
|
else if (result == ProcessBookResult.ValidationFail)
|
||||||
|
Queue.ClearCurrent();
|
||||||
else if (result == ProcessBookResult.FailedAbort)
|
else if (result == ProcessBookResult.FailedAbort)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Queue_CompletedCountChanged(this, 0);
|
Queue_CompletedCountChanged(this, 0);
|
||||||
counterTimer.Stop();
|
counterTimer.Stop();
|
||||||
|
virtualFlowControl2.VirtualControlCount = Queue.Count;
|
||||||
|
UpdateAllControls();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void WriteLine(string text)
|
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()
|
public void ClearQueue()
|
||||||
{
|
{
|
||||||
lock (lockObject)
|
lock (lockObject)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user