diff --git a/Projekte/battleship/client/src/main/java/pp/battleship/client/Menu.java b/Projekte/battleship/client/src/main/java/pp/battleship/client/Menu.java index 1079b87..9143899 100644 --- a/Projekte/battleship/client/src/main/java/pp/battleship/client/Menu.java +++ b/Projekte/battleship/client/src/main/java/pp/battleship/client/Menu.java @@ -54,14 +54,11 @@ class Menu extends Dialog { addChild(slider); - addChild(loadButton) - .addClickCommands(s -> ifTopDialog(this::loadDialog)); - addChild(saveButton) - .addClickCommands(s -> ifTopDialog(this::saveDialog)); - addChild(new Button(lookup("menu.return-to-game"))) - .addClickCommands(s -> ifTopDialog(this::close)); - addChild(new Button(lookup("menu.quit"))) - .addClickCommands(s -> ifTopDialog(app::closeApp)); + addChild(loadButton).addClickCommands(s -> ifTopDialog(this::loadDialog)); + addChild(saveButton).addClickCommands(s -> ifTopDialog(this::saveDialog)); + addChild(new Button(lookup("menu.return-to-game"))).addClickCommands(s -> ifTopDialog(this::close)); + addChild(new Button(lookup("menu.quit"))).addClickCommands(s -> ifTopDialog(app::closeApp)); + update(); }