From: sr55 Date: Wed, 31 May 2017 19:31:11 +0000 (+0100) Subject: WinGui: Fix an issue with the start/stop buttons on the toolbar. X-Git-Tag: 1.1.0~556 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37642a848bfaa1ba85ba12067a9b1c4e9c28e953;p=handbrake WinGui: Fix an issue with the start/stop buttons on the toolbar. --- diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 93aac9c19..31efc4d9b 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -205,7 +205,6 @@ namespace HandBrakeWPF.ViewModels this.scanService.ScanCompleted += this.ScanCompleted; this.scanService.ScanStatusChanged += this.ScanStatusChanged; this.queueProcessor.JobProcessingStarted += this.QueueProcessorJobProcessingStarted; - this.queueProcessor.QueuePaused += this.QueueProcessor_QueuePaused; this.queueProcessor.QueueCompleted += this.QueueCompleted; this.queueProcessor.QueueChanged += this.QueueChanged; this.queueProcessor.EncodeService.EncodeStatusChanged += this.EncodeStatusChanged; @@ -1319,7 +1318,6 @@ namespace HandBrakeWPF.ViewModels this.queueProcessor.QueueCompleted -= this.QueueCompleted; this.queueProcessor.QueueChanged -= this.QueueChanged; this.queueProcessor.JobProcessingStarted -= this.QueueProcessorJobProcessingStarted; - this.queueProcessor.QueuePaused -= this.QueueProcessor_QueuePaused; this.queueProcessor.EncodeService.EncodeStatusChanged -= this.EncodeStatusChanged; this.userSettingService.SettingChanged -= this.UserSettingServiceSettingChanged; } @@ -2546,21 +2544,6 @@ namespace HandBrakeWPF.ViewModels }); } - private void QueueProcessor_QueuePaused(object sender, EventArgs e) - { - Execute.OnUIThread( - () => - { - this.ProgramStatusLabel = Resources.Main_QueuePaused; - this.IsEncoding = false; - - if (this.windowsSeven.IsWindowsSeven) - { - this.windowsSeven.SetTaskBarProgressToNoProgress(); - } - }); - } - /// /// The queue changed. ///