diff options
author | sr55 <[email protected]> | 2018-09-28 20:18:26 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-09-28 20:18:26 +0100 |
commit | e1172af6f6c6d71241c950e0953a70755f5c5d17 (patch) | |
tree | 683433a9d1173b6c6f59d7f5838908674e9f2790 /win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | |
parent | d0c444e5682c334793934878401d77b85bb4e0fc (diff) |
WinGui: Minor bug fixes and tidyup in the queue.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs index aedd89b27..0edc63822 100644 --- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs @@ -194,7 +194,7 @@ namespace HandBrakeWPF.ViewModels public string ActivityLog { get; private set; }
- public bool CanRetryJob => this.SelectedTask != null && this.SelectedTask.Status != QueueItemStatus.Waiting;
+ public bool CanRetryJob => this.SelectedTask != null && this.SelectedTask.Status != QueueItemStatus.Waiting && this.SelectedTask.Status != QueueItemStatus.InProgress;
public bool CanEditJob => this.SelectedTask != null;
@@ -447,6 +447,7 @@ namespace HandBrakeWPF.ViewModels task.Status = QueueItemStatus.Waiting;
this.queueProcessor.BackupQueue(null);
this.JobsPending = string.Format(Resources.QueueViewModel_JobsPending, this.queueProcessor.Count);
+ this.JobStatus = Resources.QueueViewModel_QueueReady;
this.NotifyOfPropertyChange(() => this.CanRetryJob);
}
@@ -559,7 +560,7 @@ namespace HandBrakeWPF.ViewModels {
this.RetryJob(task);
}
- }
+ }
}
public void ResetAllJobs()
@@ -737,7 +738,6 @@ namespace HandBrakeWPF.ViewModels {
Execute.OnUIThread(() =>
{
- string jobsPending = string.Format(Resources.Main_JobsPending_addon, this.queueProcessor.Count);
this.IntermediateProgress = false;
if (e.IsSubtitleScan)
@@ -748,7 +748,7 @@ namespace HandBrakeWPF.ViewModels e.PercentComplete,
e.EstimatedTimeLeft,
e.ElapsedTime,
- jobsPending);
+ null);
this.ProgressValue = e.PercentComplete;
}
@@ -759,7 +759,7 @@ namespace HandBrakeWPF.ViewModels }
else if (e.IsSearching)
{
- this.JobStatus = string.Format(ResourcesUI.MainView_ProgressStatusWithTask, ResourcesUI.MainView_Searching, e.PercentComplete, e.EstimatedTimeLeft, jobsPending);
+ this.JobStatus = string.Format(ResourcesUI.MainView_ProgressStatusWithTask, ResourcesUI.MainView_Searching, e.PercentComplete, e.EstimatedTimeLeft, null);
this.ProgressValue = e.PercentComplete;
}
else
@@ -773,7 +773,7 @@ namespace HandBrakeWPF.ViewModels e.AverageFrameRate,
e.EstimatedTimeLeft,
e.ElapsedTime,
- jobsPending);
+ null);
this.ProgressValue = e.PercentComplete;
}
});
@@ -821,6 +821,7 @@ namespace HandBrakeWPF.ViewModels this.IsQueueRunning = false;
this.NotifyOfPropertyChange(() => this.SelectedTask);
this.NotifyOfPropertyChange(() => this.StatsVisible);
+ this.NotifyOfPropertyChange(() => this.CanRetryJob);
}
/// <summary>
|