From 0be9791abc742518f1e0fca9bb9429cc377f10cb Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Fri, 25 Nov 2022 18:06:30 +0100 Subject: [PATCH] reintroduce cleanup function --- EliteBGS/LoadEntriesWindow.xaml.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/EliteBGS/LoadEntriesWindow.xaml.cs b/EliteBGS/LoadEntriesWindow.xaml.cs index 5aa7881..12727f3 100644 --- a/EliteBGS/LoadEntriesWindow.xaml.cs +++ b/EliteBGS/LoadEntriesWindow.xaml.cs @@ -6,6 +6,7 @@ using System.Windows; using Microsoft.Win32; using EDPlayerJournal.Entries; using EliteBGS.Util; +using EDPlayerJournal.BGS; namespace EliteBGS; @@ -85,6 +86,8 @@ public partial class LoadEntriesWindow : Window { return; } + TransactionParser parser = new(); + try { List entries = new List(); @@ -93,7 +96,9 @@ public partial class LoadEntriesWindow : Window { continue; } Entry entry = Entry.Parse(line); - entries.Add(entry); + if (parser.IsRelevant(entry)) { + entries.Add(entry); + } } if (entries.Count <= 0) {