From 8261e1b3b2258d7234efde95c2cace158e4210c0 Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Wed, 9 Oct 2024 16:05:37 +0200 Subject: [PATCH] clen up --- .../src/main/java/pp/battleship/client/Menu.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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(); }