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);