]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix an issue where the "When Done" would prevent HandBrake from saving the...
authorsr55 <sr55.hb@outlook.com>
Sun, 29 Apr 2018 20:31:25 +0000 (21:31 +0100)
committersr55 <sr55.hb@outlook.com>
Tue, 1 May 2018 17:46:32 +0000 (18:46 +0100)
win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs

index 84505d42af1424485bfbcf1e0052df23ea1deebe..098e9201a2519a37c80caaebb167d7fe64027a33 100644 (file)
@@ -575,8 +575,8 @@ namespace HandBrakeWPF.Services.Queue
             else\r
             {\r
                 this.EncodeService.EncodeCompleted -= this.EncodeServiceEncodeCompleted;\r
-                this.OnQueueCompleted(new QueueCompletedEventArgs(true));\r
                 this.BackupQueue(string.Empty);\r
+                this.OnQueueCompleted(new QueueCompletedEventArgs(true));\r
             }\r
         }\r
 \r
@@ -660,17 +660,18 @@ namespace HandBrakeWPF.Services.Queue
                 this.InvokeQueueChanged(EventArgs.Empty);\r
                 this.InvokeJobProcessingStarted(new QueueProgressEventArgs(job));\r
                 this.EncodeService.Start(job.Task, job.Configuration);\r
+                this.BackupQueue(string.Empty);\r
             }\r
             else\r
             {\r
                 // No more jobs to process, so unsubscribe the event\r
                 this.EncodeService.EncodeCompleted -= this.EncodeServiceEncodeCompleted;\r
 \r
+                this.BackupQueue(string.Empty);\r
+\r
                 // Fire the event to tell connected services.\r
                 this.OnQueueCompleted(new QueueCompletedEventArgs(false));\r
             }\r
-\r
-            this.BackupQueue(string.Empty);\r
         }\r
 \r
         #endregion\r