mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 16:32:16 -07:00
Show filename instead of deckname if deck name is empty.
This commit is contained in:
parent
0d24e5d081
commit
abc6d96aca
1 changed files with 2 additions and 1 deletions
|
|
@ -93,7 +93,8 @@ QStringList TabDeckStorageVisual::getBannerCardsForDecks()
|
|||
CardInfoPictureWithTextOverlayWidget *display = new CardInfoPictureWithTextOverlayWidget(flow_widget, true);
|
||||
qDebug() << "Banner card is: " << deck_loader->getBannerCard();
|
||||
display->setCard(CardDatabaseManager::getInstance()->getCard(deck_loader->getBannerCard()));
|
||||
display->setOverlayText(deck_loader->getName());
|
||||
display->setOverlayText(deck_loader->getName().isEmpty() ? QFileInfo(deck_loader->getLastFileName()).fileName()
|
||||
: deck_loader->getName());
|
||||
display->setFontSize(24);
|
||||
flow_widget->addWidget(display);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue