Skip to content

Commit

Permalink
WinGui: Two bug fixes.
Browse files Browse the repository at this point in the history
- Fixed a UX issue where starting the queue with paused jobs would restart the paused jobs. Fixes HandBrake#3769
- Fixed an issue where autoname {source} tag stopped working correctly.
  • Loading branch information
sr55 committed Aug 11, 2021
1 parent ca0766b commit 8b33093
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ public Title SelectedTitle
{
if (this.userSettingService.GetUserSetting<string>(UserSettingConstants.AutoNameFormat) != null)
{
this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.ScannedSource?.SourceName ?? this.SelectedTitle?.DisplaySourceName, this.selectedPreset);
this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.SelectedTitle?.DisplaySourceName ?? this.ScannedSource?.SourceName, this.selectedPreset);
}
}

Expand Down Expand Up @@ -528,7 +528,7 @@ public long SelectedStartPoint
if (this.SelectedPointToPoint == PointToPointMode.Chapters && this.userSettingService.GetUserSetting<string>(UserSettingConstants.AutoNameFormat) != null &&
this.userSettingService.GetUserSetting<string>(UserSettingConstants.AutoNameFormat).Contains(Constants.Chapters))
{
this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.ScannedSource?.SourceName ?? this.SelectedTitle?.DisplaySourceName, this.selectedPreset);
this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.SelectedTitle?.DisplaySourceName ?? this.ScannedSource?.SourceName, this.selectedPreset);
}
}

Expand All @@ -552,7 +552,7 @@ public long SelectedEndPoint
if (this.SelectedPointToPoint == PointToPointMode.Chapters && this.userSettingService.GetUserSetting<string>(UserSettingConstants.AutoNameFormat) != null &&
this.userSettingService.GetUserSetting<string>(UserSettingConstants.AutoNameFormat).Contains(Constants.Chapters))
{
this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.ScannedSource?.SourceName ?? this.SelectedTitle?.DisplaySourceName, this.selectedPreset);
this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.SelectedTitle?.DisplaySourceName ?? this.ScannedSource?.SourceName, this.selectedPreset);
}

if (this.SelectedStartPoint > this.SelectedEndPoint && this.SelectedPointToPoint == PointToPointMode.Chapters)
Expand Down
2 changes: 1 addition & 1 deletion win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public void RetryJob(QueueTask task)

public void StartQueue()
{
if (!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 || a.Status == QueueItemStatus.Paused))
{
this.errorService.ShowMessageBox(
Resources.QueueViewModel_NoPendingJobs, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
Expand Down

0 comments on commit 8b33093

Please sign in to comment.