Skip to content

Commit

Permalink
Fix cheating in memory game
Browse files Browse the repository at this point in the history
one could cheat :) by simply clicking again on an opened tile, closing it again.
  • Loading branch information
barafael authored and hunger committed Jul 15, 2024
1 parent a4ce75d commit 1911625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/memory/memory.slint
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export component MainWindow inherits Window {
for tile[i] in root.memory-tiles: MemoryTile {
clicked => {
if (!root.disable-tiles) {
tile.image-visible = !tile.image-visible;
tile.image-visible = true;
root.check-if-pair-solved();
}
}
Expand Down

0 comments on commit 1911625

Please sign in to comment.