From 4a4054f452defe76cd9a3735a1c5afd1fa39ddbc Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 8 Apr 2021 22:10:54 +0100 Subject: WinGui: Fix an issue where the queue buttons would not update correctly if the jobs were started with the queue window closed. --- win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs index 751003b65..822d8746b 100644 --- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs @@ -529,8 +529,9 @@ namespace HandBrakeWPF.ViewModels this.queueProcessor.JobProcessingStarted += this.QueueProcessorJobProcessingStarted; this.queueProcessor.QueuePaused += this.QueueProcessor_QueuePaused; + this.IsQueueRunning = this.queueProcessor.IsProcessing; this.JobsPending = string.Format(Resources.QueueViewModel_JobsPending, this.queueProcessor.Count); - + return base.OnActivateAsync(cancellationToken); } -- cgit v1.2.3