mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-05-03 05:04:23 -04:00
Await cancell
This commit is contained in:
@@ -209,10 +209,10 @@ namespace LibationWinForms.ProcessQueue
|
||||
toolStripProgressBar1.Value = Queue.Completed.Count;
|
||||
}
|
||||
|
||||
private void cancelAllBtn_Click(object sender, EventArgs e)
|
||||
private async void cancelAllBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
Queue.ClearQueue();
|
||||
Queue.Current?.CancelAsync();
|
||||
await Queue.Current?.CancelAsync();
|
||||
virtualFlowControl2.VirtualControlCount = Queue.Count;
|
||||
UpdateAllControls();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user