\r
public string ActivityLog { get; private set; }\r
\r
- public bool CanRetryJob => this.SelectedTask != null && this.SelectedTask.Status != QueueItemStatus.Waiting;\r
+ public bool CanRetryJob => this.SelectedTask != null && this.SelectedTask.Status != QueueItemStatus.Waiting && this.SelectedTask.Status != QueueItemStatus.InProgress;\r
\r
public bool CanEditJob => this.SelectedTask != null;\r
\r
task.Status = QueueItemStatus.Waiting;\r
this.queueProcessor.BackupQueue(null);\r
this.JobsPending = string.Format(Resources.QueueViewModel_JobsPending, this.queueProcessor.Count);\r
+ this.JobStatus = Resources.QueueViewModel_QueueReady;\r
this.NotifyOfPropertyChange(() => this.CanRetryJob);\r
}\r
\r
{\r
this.RetryJob(task);\r
}\r
- }\r
+ } \r
}\r
\r
public void ResetAllJobs()\r
{\r
Execute.OnUIThread(() =>\r
{\r
- string jobsPending = string.Format(Resources.Main_JobsPending_addon, this.queueProcessor.Count);\r
this.IntermediateProgress = false;\r
\r
if (e.IsSubtitleScan)\r
e.PercentComplete,\r
e.EstimatedTimeLeft,\r
e.ElapsedTime,\r
- jobsPending);\r
+ null);\r
\r
this.ProgressValue = e.PercentComplete;\r
}\r
}\r
else if (e.IsSearching)\r
{\r
- this.JobStatus = string.Format(ResourcesUI.MainView_ProgressStatusWithTask, ResourcesUI.MainView_Searching, e.PercentComplete, e.EstimatedTimeLeft, jobsPending);\r
+ this.JobStatus = string.Format(ResourcesUI.MainView_ProgressStatusWithTask, ResourcesUI.MainView_Searching, e.PercentComplete, e.EstimatedTimeLeft, null);\r
this.ProgressValue = e.PercentComplete;\r
}\r
else\r
e.AverageFrameRate,\r
e.EstimatedTimeLeft,\r
e.ElapsedTime,\r
- jobsPending);\r
+ null);\r
this.ProgressValue = e.PercentComplete;\r
}\r
});\r
this.IsQueueRunning = false;\r
this.NotifyOfPropertyChange(() => this.SelectedTask);\r
this.NotifyOfPropertyChange(() => this.StatsVisible);\r
+ this.NotifyOfPropertyChange(() => this.CanRetryJob);\r
}\r
\r
/// <summary>\r
// Make the view adaptive.
if (e.WidthChanged)
{
- this.summaryTabControl.Visibility = this.ActualWidth < 650 ? Visibility.Collapsed : Visibility.Visible;
- this.leftTabPanel.Width = this.ActualWidth < 650 ? new GridLength(this.ActualWidth - 10, GridUnitType.Star) : new GridLength(3, GridUnitType.Star);
- this.leftTabPanel.MaxWidth = this.ActualWidth < 650 ? 650 : 400;
+ this.summaryTabControl.Visibility = this.ActualWidth < 600 ? Visibility.Collapsed : Visibility.Visible;
+ this.leftTabPanel.Width = this.ActualWidth < 600 ? new GridLength(this.ActualWidth - 10, GridUnitType.Star) : new GridLength(3, GridUnitType.Star);
+ this.leftTabPanel.MaxWidth = this.ActualWidth < 600 ? 650 : 400;
}
}
private void ContextMenu_OnOpened(object sender, RoutedEventArgs e)