summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-12-03 17:56:04 +0000
committersr55 <[email protected]>2020-12-03 17:56:14 +0000
commit3b0bd7689579fb8012a3a6c00eae53243c61d8bd (patch)
treeb80554203b4981f41da76361443f62b692445ea3 /win/CS/HandBrakeWPF/Services/Queue/QueueService.cs
parent15601f1b4aa14126ccb06ccd8041bed41aa3a7bf (diff)
WinGui: Improvements to log handling for multi-instance
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Queue/QueueService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/Queue/QueueService.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs b/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs
index c3c65f3c3..089072136 100644
--- a/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs
+++ b/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs
@@ -349,6 +349,24 @@ namespace HandBrakeWPF.Services.Queue
});
}
+ public List<string> GetLogFilePaths()
+ {
+ List<string> logPaths = new List<string>();
+ lock (QueueLock)
+ {
+ foreach (QueueTask task in this.Queue)
+ {
+ if (!string.IsNullOrEmpty(task.Statistics.CompletedActivityLogPath))
+ {
+ logPaths.Add(task.Statistics.CompletedActivityLogPath);
+ }
+ }
+ }
+
+ return logPaths;
+ }
+
+
public QueueTask GetNextJobForProcessing()
{
if (this.queue.Count > 0)