From 5d570ed02202d9a18716b97e51b1f908076ed303 Mon Sep 17 00:00:00 2001 From: Yaroslavik Date: Fri, 14 Dec 2018 01:05:40 +0200 Subject: [PATCH 1/2] IOOBE Fix #2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit А если профайл удалили, а у пользователя до сих пор выбран этот сервер?! Верно! Крушиться с истериками! Либо подыматься до последнего существующего клиента, что и подразумевает данная правка. --- Launcher/runtime/dialog/dialog.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Launcher/runtime/dialog/dialog.js b/Launcher/runtime/dialog/dialog.js index 8b35fad4..93aa62e2 100644 --- a/Launcher/runtime/dialog/dialog.js +++ b/Launcher/runtime/dialog/dialog.js @@ -293,8 +293,11 @@ function updateProfilesList(profiles) { index++; }); LogHelper.debug("Load selected %d profile",settings.profile); - if(profiles.length > 0) + if(profiles.length > 0) { + if(settings.profile >= profiles.length) + settings.profile = profiles.length-1; serverHolder.set(serverList.getChildren().get(settings.profile)); + } } function pingServer(btn) { From 39a5cee1c2b61a5df7cbc2c7e5d307af112cc7eb Mon Sep 17 00:00:00 2001 From: Yaroslavik Date: Sun, 16 Dec 2018 16:25:02 +0200 Subject: [PATCH 2/2] Correcting typos --- Launcher/runtime/dialog/overlay/settings/settings.fxml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Launcher/runtime/dialog/overlay/settings/settings.fxml b/Launcher/runtime/dialog/overlay/settings/settings.fxml index 3602b5d7..70da9aab 100644 --- a/Launcher/runtime/dialog/overlay/settings/settings.fxml +++ b/Launcher/runtime/dialog/overlay/settings/settings.fxml @@ -21,7 +21,7 @@ - +