From 0364ae6b9e07d3bbbd02d38e560b1a6e78dfc814 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 4 Dec 2024 19:15:27 +0100 Subject: [PATCH] Render a blank card if draw pile is empty --- Main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Main.qml b/Main.qml index 96eff6b..7ae949e 100644 --- a/Main.qml +++ b/Main.qml @@ -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() }