bugfix: show the top card in foundation
This commit is contained in:
parent
883d766dc3
commit
dd19000089
2
Main.qml
2
Main.qml
|
@ -39,7 +39,7 @@ ApplicationWindow {
|
||||||
model: 4 // Each of the 4 suits
|
model: 4 // Each of the 4 suits
|
||||||
CardModel {
|
CardModel {
|
||||||
required property int index; // passed from repeater
|
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
|
isFaceDown: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue