From b763abf98d431bcb6a04d5115e14c01f17538458 Mon Sep 17 00:00:00 2001
From: ppouchet <pierre.pouchet@etu.ec-lyon.fr>
Date: Fri, 4 Apr 2025 16:20:22 +0200
Subject: [PATCH] looseabandon marche

---
 Motus/Main.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Motus/Main.qml b/Motus/Main.qml
index 830bfd2..78da2f9 100644
--- a/Motus/Main.qml
+++ b/Motus/Main.qml
@@ -637,11 +637,12 @@ Window {
                             anchors.bottom: parent.bottom
                             anchors.horizontalCenter: parent.horizontalCenter
                             cursorShape: Qt.PointingHandCursor
-                            enabled: motusGame && (motusGame.win || motusGame.loosetry || motusGame.looseabandon || motusGame.loosetime || !motusGame.debut)
+                            enabled: motusGame && (!motusGame.win && !motusGame.loosetry && !motusGame.looseabandon && !motusGame.loosetime && motusGame.debut)
                             onClicked: {
                                 updateGameStats();
                                 statsOverlayVisible = true;
                                 selectedLetterForStats = nb_lettres;
+                                motusGame.looseabandon=true;
                             }
                         }
                     }
-- 
GitLab