From eb409dcc01775eefc92396d3deeb0cf3aad3dfae Mon Sep 17 00:00:00 2001 From: Gravit Date: Sat, 10 Nov 2018 20:42:00 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B2=D0=B0=D1=80?= =?UTF-8?q?=D0=BD=D0=B8=D0=BD=D0=B3=D0=B0=20=D0=BE=20Java=2010=20FXML?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Launcher/runtime/dialog/dialog.js | 11 ++++------- Launcher/runtime/dialog/mainmenu.fxml | 2 +- Launcher/runtime/dialog/overlay/options/options.fxml | 2 +- .../runtime/dialog/overlay/processing/processing.fxml | 2 +- .../runtime/dialog/overlay/settings/settings.fxml | 2 +- 5 files changed, 8 insertions(+), 11 deletions(-) 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 @@ - +