diff options
author | sr55 <[email protected]> | 2020-02-12 22:16:50 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2020-02-12 22:16:50 +0000 |
commit | 597e834963057c9ea52cb95e994ad4cbce0d8158 (patch) | |
tree | 80aa5cd30c8afdffca8409dfb45f0e1aac3db4e4 /win/CS/HandBrakeWPF/Services | |
parent | 0979767b3fbf33838e9012b4f28e36a57e5e37e2 (diff) |
WinGui: To prevent potential glitches, stop any existing running jobs when importing duplicates. #2632
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Queue/QueueService.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs b/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs index 25abbd53a..72bd5d32c 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs @@ -211,6 +211,10 @@ namespace HandBrakeWPF.Services.Queue { foreach (QueueTask task in duplicates) { + if (task.Status == QueueItemStatus.InProgress) + { + this.Stop(); + } this.queue.Remove(task); } @@ -450,6 +454,7 @@ namespace HandBrakeWPF.Services.Queue { this.EncodeService.Stop(); } + this.IsProcessing = false; this.InvokeQueuePaused(EventArgs.Empty); } |