From 0f6205fbc7cbe108ec2c2b0bc59aeebe47d4737d Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Sun, 1 Dec 2024 15:57:33 +0100 Subject: [PATCH] fixed topDialog --- .../client/src/main/java/pp/monopoly/client/gui/StartMenu.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/StartMenu.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/StartMenu.java index 8a9c532..25ff56d 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/StartMenu.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/StartMenu.java @@ -54,9 +54,8 @@ public class StartMenu extends Dialog { startButton.setTextHAlignment(HAlignment.Center); // Center the text horizontally startButton.addClickCommands(s -> ifTopDialog(() -> { - this.close(); // Close the StartMenu dialog - app.connect(); // Perform the connection logic app.getGameLogic().playSound(Sound.BUTTON); + app.connect(); // Perform the connection logic })); centerMenu.addChild(startButton);