mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +03:00
commit
7b345f2302
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue