Skip to content

Commit

Permalink
fix: select matching tab after importing a deck
Browse files Browse the repository at this point in the history
Fixes #4541
  • Loading branch information
beheh committed Dec 13, 2024
1 parent 1143b54 commit b0e7536
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Added related card tooltip to Grand Magister Rommath.
- Added related card tooltips to most cards that resurrect from the Graveyard.\
*Abominable Bowman, All Fel Breaks Loose, Amulet of Undying, Animate Dead, Anyfin Can Happen, Bloodreaver Gul'dan, Body Wrapper, Bonecaller, Boneshredder, Catrina Muerte, Counterfeit Blade, Da Undatakah, Defense Attorney Nathanos, Eternal Servitude, Habeas Corpses, Hadronox, Infantry Reanimator, Jewel of N'Zoth, Lesser Diamond Spell Stone, Mass Resurrection, N'Zoth, God of the Deep, N'Zoth, The Corruptor, Onyx Bishop, Psychopomp, Raise Dead, Rally!, Resurrect, Revive Pet, Tamsin's Phylactery, Tomb Lurker, Twilight's Call, Unending Swarm, Vectus, Witching Hour, Xyrella, the Devout*
- Fixed the deck selector switching to the wrong tab after importing a deck.

**Battlegrounds**:
- Added counters for Beetle stats, Spells played and the the Undead attack bonus.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ public void SelectDeckType(DeckType selectedDeckType, bool ignoreSelectionChange
return;
if(ignoreSelectionChange)
_ignoreSelectionChange = true;
ListViewDeckType.SelectedIndex = (int)selectedDeckType;
ListViewDeckType.SelectedIndex = DeckTypeItems.IndexOf(selectedDeckType);
if(ignoreSelectionChange)
_ignoreSelectionChange = false;
}
Expand Down

0 comments on commit b0e7536

Please sign in to comment.