From 9931c0887da90de8ba05f866540597e43dd379a5 Mon Sep 17 00:00:00 2001 From: Benedict Etzel Date: Tue, 28 Nov 2023 12:38:35 +0100 Subject: [PATCH] fix(PlayerSettings): spell school counter setting not persisting --- .../FlyoutControls/Options/Overlay/OverlayPlayer.xaml.cs | 2 +- Hearthstone Deck Tracker/Utility/WotogCounterHelper.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Hearthstone Deck Tracker/FlyoutControls/Options/Overlay/OverlayPlayer.xaml.cs b/Hearthstone Deck Tracker/FlyoutControls/Options/Overlay/OverlayPlayer.xaml.cs index f6bfb1da7..36188bf69 100644 --- a/Hearthstone Deck Tracker/FlyoutControls/Options/Overlay/OverlayPlayer.xaml.cs +++ b/Hearthstone Deck Tracker/FlyoutControls/Options/Overlay/OverlayPlayer.xaml.cs @@ -352,7 +352,7 @@ private void ComboBoxSpellSchools_SelectionChanged(object sender, SelectionChang { if(!_initialized) return; - Config.Instance.PlayerSpellSchoolsCounter = (DisplayMode)ComboBoxAbyssal.SelectedItem; + Config.Instance.PlayerSpellSchoolsCounter = (DisplayMode)ComboBoxSpellSchools.SelectedItem; Config.Save(); } diff --git a/Hearthstone Deck Tracker/Utility/WotogCounterHelper.cs b/Hearthstone Deck Tracker/Utility/WotogCounterHelper.cs index db5a0a7de..d621246f8 100644 --- a/Hearthstone Deck Tracker/Utility/WotogCounterHelper.cs +++ b/Hearthstone Deck Tracker/Utility/WotogCounterHelper.cs @@ -92,8 +92,8 @@ public static bool OpponentSeenCthun ); public static bool ShowPlayerSpellSchoolsCounter => !Core.Game.IsInMenu && ( - Config.Instance.PlayerSpellsCounter == DisplayMode.Always - || (Config.Instance.PlayerSpellsCounter == DisplayMode.Auto && InDeckAndHand(new[] { + Config.Instance.PlayerSpellSchoolsCounter == DisplayMode.Always + || (Config.Instance.PlayerSpellSchoolsCounter == DisplayMode.Auto && InDeckAndHand(new[] { CardIds.Collectible.Mage.DiscoveryOfMagic, CardIds.Collectible.Mage.InquisitiveCreation, CardIds.Collectible.Neutral.Multicaster,