From a99fa10e29535ab4d684d821ffc7d24c9bc3cf6e Mon Sep 17 00:00:00 2001 From: Yaroslavik Date: Wed, 21 Nov 2018 02:13:24 +0300 Subject: [PATCH] IOOBE Fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Если в клиенте не было профилей - клиент не загружался. (Вечная загрузка) https://hastebin.com/qesogeyutu.hs --- Launcher/runtime/dialog/dialog.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Launcher/runtime/dialog/dialog.js b/Launcher/runtime/dialog/dialog.js index acfb3193..8b35fad4 100644 --- a/Launcher/runtime/dialog/dialog.js +++ b/Launcher/runtime/dialog/dialog.js @@ -293,7 +293,8 @@ function updateProfilesList(profiles) { index++; }); LogHelper.debug("Load selected %d profile",settings.profile); - serverHolder.set(serverList.getChildren().get(settings.profile)); + if(profiles.length > 0) + serverHolder.set(serverList.getChildren().get(settings.profile)); } function pingServer(btn) { @@ -422,4 +423,4 @@ launcher.loadScript("dialog/overlay/debug/debug.js"); launcher.loadScript("dialog/overlay/processing/processing.js"); launcher.loadScript("dialog/overlay/settings/settings.js"); launcher.loadScript("dialog/overlay/options/options.js"); -launcher.loadScript("dialog/overlay/update/update.js"); \ No newline at end of file +launcher.loadScript("dialog/overlay/update/update.js");