IOOBE Fix (#73)

Если в клиенте не было профилей - клиент не загружался. (Вечная загрузка)
https://hastebin.com/qesogeyutu.hs
This commit is contained in:
Yaroslavik 2018-11-21 17:29:57 +03:00 committed by Zaxar163
parent 3c960eb501
commit a191c45a57

View file

@ -293,7 +293,8 @@ function updateProfilesList(profiles) {
index++; index++;
}); });
LogHelper.debug("Load selected %d profile",settings.profile); 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) { 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/processing/processing.js");
launcher.loadScript("dialog/overlay/settings/settings.js"); launcher.loadScript("dialog/overlay/settings/settings.js");
launcher.loadScript("dialog/overlay/options/options.js"); launcher.loadScript("dialog/overlay/options/options.js");
launcher.loadScript("dialog/overlay/update/update.js"); launcher.loadScript("dialog/overlay/update/update.js");