diff --git a/EliteBGS/MainWindow.xaml b/EliteBGS/MainWindow.xaml index f6f26e6..fff5493 100644 --- a/EliteBGS/MainWindow.xaml +++ b/EliteBGS/MainWindow.xaml @@ -262,6 +262,7 @@ + @@ -270,6 +271,7 @@ + diff --git a/EliteBGS/MainWindow.xaml.cs b/EliteBGS/MainWindow.xaml.cs index d5a7ca0..66499d9 100644 --- a/EliteBGS/MainWindow.xaml.cs +++ b/EliteBGS/MainWindow.xaml.cs @@ -64,6 +64,7 @@ public partial class MainWindow : MetroWindow { this.NoInfluenceSupport.IsOn = Config.Global.IgnoreInfluenceSupport; this.NoMarketBuy.IsOn = Config.Global.IgnoreMarketBuy; this.NoFleetCarrier.IsOn = Config.Global.IgnoreFleetCarrier; + this.NoPowerplay.IsOn = Config.Global.IgnorePowerplay; // Apply theme try { @@ -182,6 +183,7 @@ public partial class MainWindow : MetroWindow { options.IgnoreInfluenceSupport = Config.Global.IgnoreInfluenceSupport; options.IgnoreMarketBuy = Config.Global.IgnoreMarketBuy; options.IgnoreFleetCarrierFaction = Config.Global.IgnoreFleetCarrier; + options.IgnorePowerplay = Config.Global.IgnorePowerplay; List transactions = parser.Parse(entries, options); @@ -583,6 +585,10 @@ public partial class MainWindow : MetroWindow { Config.Global.IgnoreFleetCarrier = this.NoFleetCarrier.IsOn; } + private void NoPowerplay_Toggled(object sender, RoutedEventArgs e) { + Config.Global.IgnorePowerplay = this.NoPowerplay.IsOn; + } + private void OpenInExplorer_Click(object sender, RoutedEventArgs e) { try { Process.Start(new ProcessStartInfo(Config.Global.JournalLocation) { @@ -723,5 +729,4 @@ public partial class MainWindow : MetroWindow { private void PostToAll_Click(object sender, RoutedEventArgs e) { PostToDiscordWebhook(Config.Global.Webhooks); } - } diff --git a/EliteBGS/Util/AppConfig.cs b/EliteBGS/Util/AppConfig.cs index cec6dfa..3b26745 100644 --- a/EliteBGS/Util/AppConfig.cs +++ b/EliteBGS/Util/AppConfig.cs @@ -67,6 +67,11 @@ public class AppConfig { /// public bool IgnoreFleetCarrier { get; set; } = true; + /// + /// Ignore power play? + /// + public bool IgnorePowerplay { get; set; } = true; + /// /// List of Webhooks configured ///