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");