]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix an issue with the start/stop buttons on the toolbar.
authorsr55 <sr55.hb@outlook.com>
Wed, 31 May 2017 19:31:11 +0000 (20:31 +0100)
committersr55 <sr55.hb@outlook.com>
Wed, 31 May 2017 19:31:23 +0000 (20:31 +0100)
win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index 93aac9c19825c9d2e4319b4791f038815b3fba82..31efc4d9b7ce3ea4e3d1d7f63e3b1269cf930eec 100644 (file)
@@ -205,7 +205,6 @@ namespace HandBrakeWPF.ViewModels
             this.scanService.ScanCompleted += this.ScanCompleted;\r
             this.scanService.ScanStatusChanged += this.ScanStatusChanged;\r
             this.queueProcessor.JobProcessingStarted += this.QueueProcessorJobProcessingStarted;\r
-            this.queueProcessor.QueuePaused += this.QueueProcessor_QueuePaused;\r
             this.queueProcessor.QueueCompleted += this.QueueCompleted;\r
             this.queueProcessor.QueueChanged += this.QueueChanged;\r
             this.queueProcessor.EncodeService.EncodeStatusChanged += this.EncodeStatusChanged;\r
@@ -1319,7 +1318,6 @@ namespace HandBrakeWPF.ViewModels
             this.queueProcessor.QueueCompleted -= this.QueueCompleted;\r
             this.queueProcessor.QueueChanged -= this.QueueChanged;\r
             this.queueProcessor.JobProcessingStarted -= this.QueueProcessorJobProcessingStarted;\r
-            this.queueProcessor.QueuePaused -= this.QueueProcessor_QueuePaused;\r
             this.queueProcessor.EncodeService.EncodeStatusChanged -= this.EncodeStatusChanged;\r
             this.userSettingService.SettingChanged -= this.UserSettingServiceSettingChanged;\r
         }\r
@@ -2546,21 +2544,6 @@ namespace HandBrakeWPF.ViewModels
                 });\r
         }\r
 \r
-        private void QueueProcessor_QueuePaused(object sender, EventArgs e)\r
-        {\r
-            Execute.OnUIThread(\r
-                () =>\r
-                {\r
-                    this.ProgramStatusLabel = Resources.Main_QueuePaused;\r
-                    this.IsEncoding = false;\r
-\r
-                    if (this.windowsSeven.IsWindowsSeven)\r
-                    {\r
-                        this.windowsSeven.SetTaskBarProgressToNoProgress();\r
-                    }\r
-                });\r
-        }\r
-\r
         /// <summary>\r
         /// The queue changed.\r
         /// </summary>\r