Reset positions and filters when reopening the editor
This commit is contained in:
@@ -70,6 +70,8 @@ bool DeckView::ButtonPressed(Buttons button)
|
||||
void DeckView::SetDeck(DeckDataWrapper *toShow)
|
||||
{
|
||||
mCurrentDeck = toShow;
|
||||
dirtyCardPos = true;
|
||||
dirtyFilters = true;
|
||||
reloadIndexes();
|
||||
}
|
||||
|
||||
|
||||
@@ -167,6 +167,7 @@ void GameStateDeckViewer::Start()
|
||||
myCollection = NEW DeckDataWrapper(playerdata->collection);
|
||||
myCollection->Sort(WSrcCards::SORT_ALPHA);
|
||||
setupView(mCurrentView, myCollection);
|
||||
toggleDeckButton->setText("View Deck");
|
||||
|
||||
//Icons
|
||||
mIcons = manaIcons;
|
||||
|
||||
Reference in New Issue
Block a user