Distinguish between looking up a card as a commander and a card.

This commit is contained in:
Lukas Brübach 2025-01-22 11:48:18 +01:00
parent 276a8fa335
commit 364865487a
5 changed files with 21 additions and 9 deletions

View file

@ -720,11 +720,11 @@ TabDeckEditor *TabSupervisor::addDeckEditorTab(const DeckLoader *deckToOpen)
return tab;
}
TabEdhRec *TabSupervisor::addEdhrecTab(const CardInfoPtr cardToQuery)
TabEdhRec *TabSupervisor::addEdhrecTab(const CardInfoPtr cardToQuery, bool isCommander)
{
TabEdhRec *tab = new TabEdhRec(this);
if (cardToQuery)
tab->setCard(cardToQuery);
tab->setCard(cardToQuery, isCommander);
// connect(tab, &TabDeckEditor::deckEditorClosing, this, &TabSupervisor::deckEditorClosed);
// connect(tab, &TabDeckEditor::openDeckEditor, this, &TabSupervisor::addDeckEditorTab);
myAddTab(tab);