Guess sanitized card name so that tags can have banner cards too.

This commit is contained in:
Lukas Brübach 2025-02-27 06:53:46 +01:00
parent 43b0465518
commit 075c10b73f

View file

@ -11,7 +11,7 @@ EdhrecCommanderApiResponseCardDetailsDisplayWidget::EdhrecCommanderApiResponseCa
setLayout(layout); setLayout(layout);
cardPictureWidget = new CardInfoPictureWidget(this); cardPictureWidget = new CardInfoPictureWidget(this);
cardPictureWidget->setCard(CardDatabaseManager::getInstance()->getCard(toDisplay.name)); cardPictureWidget->setCard(CardDatabaseManager::getInstance()->guessCard(toDisplay.sanitized));
label = new QLabel(this); label = new QLabel(this);
label->setText(toDisplay.name + "\n" + toDisplay.label); label->setText(toDisplay.name + "\n" + toDisplay.label);