reintroduce cleanup function

This commit is contained in:
Florian Stinglmayr 2022-11-25 18:06:30 +01:00
parent 027f8a892d
commit 0be9791abc

View File

@ -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<Entry> entries = new List<Entry>();
@ -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) {