summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-01-25 15:23:44 +0000
committersr55 <[email protected]>2020-01-25 15:27:36 +0000
commit4768a152b46e85b8fbd11677fde6c5e737bf4e48 (patch)
treeb706157a99695f707cdf34f077d92044e2c4dc94 /win/CS/HandBrakeWPF/ViewModels
parent976acecc2e719560ad2b7833b63ba073ce187d77 (diff)
WinGui: Main Window Status label not updating correctly when resetting jobs. Fixes #2538
(cherry picked from commit ddef5204443b2248940dc2fce5e7463c217caf33)
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
index 6d9ccdfec..f176e2caf 100644
--- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
@@ -459,14 +459,7 @@ namespace HandBrakeWPF.ViewModels
/// </param>
public void RetryJob(QueueTask task)
{
- if (task == null)
- {
- return;
- }
-
- task.Status = QueueItemStatus.Waiting;
- task.Statistics.Reset();
- this.queueProcessor.BackupQueue(null);
+ this.queueProcessor.RetryJob(task);
this.JobsPending = string.Format(Resources.QueueViewModel_JobsPending, this.queueProcessor.Count);
this.NotifyOfPropertyChange(() => this.CanRetryJob);
}
@@ -787,7 +780,6 @@ namespace HandBrakeWPF.ViewModels
string logContent = logReader.ReadToEnd();
this.ActivityLog = logContent;
}
-
}
else
{