Only use normal layout cards as a background source. (#6152)

Took 11 minutes

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2025-09-15 21:12:09 +02:00 committed by GitHub
parent 9c3be1b851
commit dbbb554735
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,7 +89,8 @@ void HomeWidget::updateRandomCard()
case BackgroundSources::RandomCardArt:
do {
newCard = CardDatabaseManager::getInstance()->getRandomCard();
} while (newCard == backgroundSourceCard->getCard());
} while (newCard == backgroundSourceCard->getCard() &&
newCard.getCardPtr()->getProperty("layout") != "normal");
break;
case BackgroundSources::DeckFileArt:
QList<CardRef> cardRefs = backgroundSourceDeck->getCardRefList();