Skip to content

Commit

Permalink
update stats when changing version on non-active deck (HearthSim#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
epix37 committed Jun 22, 2015
1 parent ccd3933 commit 386ea73
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Hearthstone Deck Tracker/MainWindow/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,9 @@ private void ComboBoxDeckVersion_OnSelectionChanged(object sender, SelectionChan
var version = ComboBoxDeckVersion.SelectedItem as SerializableVersion;
if(version != null && deck.SelectedVersion != version)
{
//DeckPickerList.RemoveDeck(deck);
deck.SelectVersion(version);
DeckList.Save();
//DeckPickerList.AddAndSelectDeck(deck);
//DeckPickerList.UpdateList();
DeckPickerList.UpdateDecks();
DeckPickerList.UpdateDecks(forceUpdate: new[] {deck});
UpdateDeckList(deck);
ManaCurveMyDecks.UpdateValues();
if(deck.Equals(DeckList.Instance.ActiveDeck))
Expand Down

0 comments on commit 386ea73

Please sign in to comment.