reintroduce cleanup function
This commit is contained in:
parent
027f8a892d
commit
0be9791abc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user