Render a blank card if draw pile is empty

This commit is contained in:
ItsDrike 2024-12-04 19:15:27 +01:00
parent 12676e36b7
commit 0364ae6b9e
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -80,7 +80,7 @@ ApplicationWindow {
// Draw pile (only the top card is shown)
CardModel {
card: GameState.drawPile.length > 0 ? GameState.drawPile[GameState.drawPile.length - 1] : null
isFaceDown: true
isFaceDown: GameState.drawPile.length > 0 ? true : false
onClicked: {
GameState.drawNextCard()
}