diff --git a/EliteBGS/MainWindow.xaml b/EliteBGS/MainWindow.xaml
index 65f651e..e053428 100644
--- a/EliteBGS/MainWindow.xaml
+++ b/EliteBGS/MainWindow.xaml
@@ -163,6 +163,7 @@
+
@@ -201,6 +202,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/EliteBGS/MainWindow.xaml.cs b/EliteBGS/MainWindow.xaml.cs
index 6875ac0..2559b86 100644
--- a/EliteBGS/MainWindow.xaml.cs
+++ b/EliteBGS/MainWindow.xaml.cs
@@ -58,6 +58,8 @@ public partial class MainWindow : MetroWindow {
LogType.SelectedIndex = 0;
}
+ this.NoInfluenceSupport.IsOn = Config.Global.IgnoreInfluenceSupport;
+
// Apply theme
try {
AddCustomThemes();
@@ -165,8 +167,12 @@ public partial class MainWindow : MetroWindow {
private void HandleEntries(List entries, DateTime start, DateTime end) {
try {
- TransactionParser parser = new TransactionParser();
- List transactions = parser.Parse(entries);
+ TransactionParser parser = new();
+ TransactionParserOptions options = new();
+
+ options.IgnoreInfluenceSupport = Config.Global.IgnoreInfluenceSupport;
+
+ List transactions = parser.Parse(entries, options);
// Filter the transactions down to the given time frame
transactions = transactions
@@ -520,4 +526,8 @@ public partial class MainWindow : MetroWindow {
Process.Start(info);
e.Handled = true;
}
+
+ private void NoInfluenceSupport_Toggled(object sender, RoutedEventArgs e) {
+ Config.Global.IgnoreInfluenceSupport = this.NoInfluenceSupport.IsOn;
+ }
}
diff --git a/EliteBGS/Util/AppConfig.cs b/EliteBGS/Util/AppConfig.cs
index 96a3231..c1261d3 100644
--- a/EliteBGS/Util/AppConfig.cs
+++ b/EliteBGS/Util/AppConfig.cs
@@ -34,7 +34,7 @@ namespace EliteBGS.Util {
}
}
}
-
+
public string Colour {
get {
return colour;
@@ -48,6 +48,11 @@ namespace EliteBGS.Util {
}
}
+ ///
+ /// Whether we ignore influence support scenarios form parsing.
+ ///
+ public bool IgnoreInfluenceSupport { get; set; } = false;
+
[JsonIgnore]
public string FullTheme {
get { return Theme + "." + Colour; }