diff --git a/Launcher/runtime/dialog/dialog.js b/Launcher/runtime/dialog/dialog.js index 2ca9cf9d..9bd80975 100644 --- a/Launcher/runtime/dialog/dialog.js +++ b/Launcher/runtime/dialog/dialog.js @@ -278,13 +278,10 @@ function updateProfilesList(profiles) { profiles.forEach(function (profile, i, arr) { pingers[profile.object] = new ServerPinger(profile.object.getServerSocketAddress(), profile.object.getVersion()); var serverBtn = new javafx.scene.control.ToggleButton(profile); - (function () { - profilesList[serverBtn] = profile; - var hold = serverBtn; - serverBtn.setOnAction(function (event) { - serverHolder.set(hold); - }); - })(); + profilesList[serverBtn] = profile; + serverBtn.setOnAction(function (event) { + serverHolder.set(serverBtn); + }); serverList.getChildren().add(serverBtn); }); serverHolder.set(serverList.getChildren().get(0)); diff --git a/Launcher/runtime/dialog/mainmenu.fxml b/Launcher/runtime/dialog/mainmenu.fxml index 92fbb703..af7e3272 100644 --- a/Launcher/runtime/dialog/mainmenu.fxml +++ b/Launcher/runtime/dialog/mainmenu.fxml @@ -13,7 +13,7 @@ - + diff --git a/Launcher/runtime/dialog/overlay/options/options.fxml b/Launcher/runtime/dialog/overlay/options/options.fxml index 527b8f10..46c708a4 100644 --- a/Launcher/runtime/dialog/overlay/options/options.fxml +++ b/Launcher/runtime/dialog/overlay/options/options.fxml @@ -8,7 +8,7 @@ - + diff --git a/Launcher/runtime/dialog/overlay/processing/processing.fxml b/Launcher/runtime/dialog/overlay/processing/processing.fxml index 23b2b22a..1c188cb3 100644 --- a/Launcher/runtime/dialog/overlay/processing/processing.fxml +++ b/Launcher/runtime/dialog/overlay/processing/processing.fxml @@ -8,7 +8,7 @@ - + diff --git a/Launcher/runtime/dialog/overlay/settings/settings.fxml b/Launcher/runtime/dialog/overlay/settings/settings.fxml index 55e512b8..8655ab3f 100644 --- a/Launcher/runtime/dialog/overlay/settings/settings.fxml +++ b/Launcher/runtime/dialog/overlay/settings/settings.fxml @@ -14,7 +14,7 @@ - +