diff options
author | sr55 <[email protected]> | 2018-04-29 21:31:25 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-04-29 21:31:25 +0100 |
commit | f62170c9ee9bb694e7447ea39f5fa3789feb49df (patch) | |
tree | 710d3c74d5358631411292b22c38acc1073a4be3 | |
parent | 015b88f86f67782d2c0d6c2e8d978b3d93a9b600 (diff) |
WinGui: Fix an issue where the "When Done" would prevent HandBrake from saving the queue state.
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs index 84505d42a..098e9201a 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs @@ -575,8 +575,8 @@ namespace HandBrakeWPF.Services.Queue else
{
this.EncodeService.EncodeCompleted -= this.EncodeServiceEncodeCompleted;
- this.OnQueueCompleted(new QueueCompletedEventArgs(true));
this.BackupQueue(string.Empty);
+ this.OnQueueCompleted(new QueueCompletedEventArgs(true));
}
}
@@ -660,17 +660,18 @@ namespace HandBrakeWPF.Services.Queue this.InvokeQueueChanged(EventArgs.Empty);
this.InvokeJobProcessingStarted(new QueueProgressEventArgs(job));
this.EncodeService.Start(job.Task, job.Configuration);
+ this.BackupQueue(string.Empty);
}
else
{
// No more jobs to process, so unsubscribe the event
this.EncodeService.EncodeCompleted -= this.EncodeServiceEncodeCompleted;
+ this.BackupQueue(string.Empty);
+
// Fire the event to tell connected services.
this.OnQueueCompleted(new QueueCompletedEventArgs(false));
}
-
- this.BackupQueue(string.Empty);
}
#endregion
|