diff --git a/Hearthstone Deck Tracker/Windows/MainWindowControls/DeckChartsView.xaml.cs b/Hearthstone Deck Tracker/Windows/MainWindowControls/DeckChartsView.xaml.cs index e118dd0c1..62952cc87 100644 --- a/Hearthstone Deck Tracker/Windows/MainWindowControls/DeckChartsView.xaml.cs +++ b/Hearthstone Deck Tracker/Windows/MainWindowControls/DeckChartsView.xaml.cs @@ -4,23 +4,13 @@ namespace Hearthstone_Deck_Tracker.Windows.MainWindowControls { public partial class DeckChartsView { - private Deck _deck; - public DeckChartsView() { InitializeComponent(); } - public void SetDeck(Deck deck) - { - ((DeckChartsViewModel)DataContext).Deck = deck; - _deck = deck; - } + public void SetDeck(Deck deck) => ((DeckChartsViewModel)DataContext).Deck = deck; - public void ReloadUI() - { - if(_deck != null) - ((DeckChartsViewModel)DataContext).Deck = _deck; - } + public void ReloadUI() => ((DeckChartsViewModel)DataContext).Update(); } }