diff options
author | sr55 <[email protected]> | 2018-07-29 13:51:04 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-07-29 13:51:04 +0100 |
commit | ecf8523aff86d547cefd30483ef202a355dcffb6 (patch) | |
tree | be21805bf220bd827e1fd5736e34e84f0c9761f0 /win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | |
parent | 1cab4cf87529b906b75e04910bf2ac87aed63857 (diff) |
WinGui: Don't grey out the Start Queue button when the encode is paused. #1501
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs index 12f23edf6..57ebd2830 100644 --- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs @@ -379,23 +379,11 @@ namespace HandBrakeWPF.ViewModels }
/// <summary>
- /// Can Start Encoding.
- /// Used by Caliburn Micro to enable/disable the context menu item.
- /// </summary>
- /// <returns>
- /// True when we can start encoding.
- /// </returns>
- public bool CanStartQueue()
- {
- return !this.IsQueueRunning;
- }
-
- /// <summary>
/// Start Encode
/// </summary>
public void StartQueue()
{
- if (this.queueProcessor.Count == 0 || !this.QueueTasks.Any(a => a.Status == QueueItemStatus.Waiting || a.Status == QueueItemStatus.InProgress))
+ if (!this.QueueTasks.Any(a => a.Status == QueueItemStatus.Waiting || a.Status == QueueItemStatus.InProgress))
{
this.errorService.ShowMessageBox(
Resources.QueueViewModel_NoPendingJobs, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
|