bugfix: show the top card in foundation

This commit is contained in:
ItsDrike 2024-12-03 15:08:00 +01:00
parent 883d766dc3
commit dd19000089
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -39,7 +39,7 @@ ApplicationWindow {
model: 4 // Each of the 4 suits
CardModel {
required property int index; // passed from repeater
card: gameState.foundation[index].length > 0 ? gameState.foundation[index] : null
card: gameState.foundation[index].length > 0 ? gameState.foundation[index][0] : null
isFaceDown: false
}
}