From 479f2a8da44ee1237acdf187892e0bf2e77c5663 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 25 Mar 2012 18:14:10 +0000 Subject: WinGuWinGui:(WPF) Remove some legacy queue code with the queue models and fix up some issues with the quality slider on the new video tab. Improve the User settings service code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4542 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../HandBrake.ApplicationServices/Services/QueueProcessor.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs') diff --git a/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs b/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs index ce3a756ed..1deeb0d44 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs @@ -201,6 +201,12 @@ namespace HandBrake.ApplicationServices.Services { this.QueueManager.LastProcessedJob.Status = QueueItemStatus.Completed; + // Clear the completed item of the queue if the setting is set. + if (userSettingService.GetUserSetting(ASUserSettingConstants.ClearCompletedFromQueue)) + { + this.QueueManager.ClearCompleted(); + } + // Growl if (userSettingService.GetUserSetting(ASUserSettingConstants.GrowlEncode)) GrowlCommunicator.Notify("Encode Completed", @@ -218,12 +224,12 @@ namespace HandBrake.ApplicationServices.Services } // Handling Log Data - this.EncodeService.ProcessLogs(this.QueueManager.LastProcessedJob.Destination); + this.EncodeService.ProcessLogs(this.QueueManager.LastProcessedJob.Task.Destination); // Post-Processing if (e.Successful) { - SendToApplication(this.QueueManager.LastProcessedJob.Destination); + SendToApplication(this.QueueManager.LastProcessedJob.Task.Destination); } // Move onto the next job. -- cgit v1.2.3