Merge pull request #101 from GravitLauncher/master

IOOBE Fix #2
This commit is contained in:
Zaxar163 2018-12-14 17:02:34 +03:00 committed by GitHub
commit 7b345f2302
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {