diff options
author | sr55 <[email protected]> | 2018-09-22 21:56:29 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-09-22 21:56:29 +0100 |
commit | 56042d5a8a9eae3b1127650b79a4604fdeccf4f1 (patch) | |
tree | f21f3c70fb11c8a86ae4010f8bfe795f415074e1 /win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | |
parent | 08da5b7e209cd511909b9182e6bfe34c5015e4a6 (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.cs | 22 |
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
|