summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-09-22 21:56:29 +0100
committersr55 <[email protected]>2018-09-22 21:56:29 +0100
commit56042d5a8a9eae3b1127650b79a4604fdeccf4f1 (patch)
treef21f3c70fb11c8a86ae4010f8bfe795f415074e1 /win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
parent08da5b7e209cd511909b9182e6bfe34c5015e4a6 (diff)
WinGui: Add Retry Selected and Retry All Jobs to the Queue List right click menu. #1087
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
index c393176fd..83240d586 100644
--- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
@@ -541,6 +541,28 @@ namespace HandBrakeWPF.ViewModels
}
}
+ public void ResetSelectedJobs()
+ {
+ foreach (var task in this.SelectedItems)
+ {
+ if (task.Status == QueueItemStatus.Completed || task.Status == QueueItemStatus.Error)
+ {
+ this.RetryJob(task);
+ }
+ }
+ }
+
+ public void ResetAllJobs()
+ {
+ foreach (var task in this.QueueTasks)
+ {
+ if (task.Status == QueueItemStatus.Completed || task.Status == QueueItemStatus.Error)
+ {
+ this.RetryJob(task);
+ }
+ }
+ }
+
#endregion
#region Methods