mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX][ Фикс модуля ScriptEngine и других мелких багов
This commit is contained in:
parent
986b3194ec
commit
80c515ea98
4 changed files with 18 additions and 4 deletions
|
@ -49,7 +49,7 @@ public void initChannel(NioSocketChannel ch) {
|
|||
pipeline.addLast(new WebSocketFrameHandler());
|
||||
}
|
||||
});
|
||||
if(config.proxy.enabled)
|
||||
if(config.proxy != null && config.proxy.enabled)
|
||||
{
|
||||
LogHelper.info("Connect to main server %s");
|
||||
Request.service = StandartClientWebSocketService.initWebSockets(config.proxy.address, false);
|
||||
|
|
|
@ -116,8 +116,10 @@ public void execute(ChannelHandlerContext ctx, Client clientData) throws Excepti
|
|||
result.permissions = clientData.permissions;
|
||||
if(getSession)
|
||||
{
|
||||
clientData.session = random.nextLong();
|
||||
LaunchServer.server.sessionManager.addClient(clientData);
|
||||
if(clientData.session == 0) {
|
||||
clientData.session = random.nextLong();
|
||||
LaunchServer.server.sessionManager.addClient(clientData);
|
||||
}
|
||||
result.session = clientData.session;
|
||||
}
|
||||
if(initProxy)
|
||||
|
|
|
@ -240,6 +240,18 @@ function verifyLauncher(e) {
|
|||
//result.list весь список
|
||||
//result.list[0].name имя авторизации(не видно)
|
||||
//result.list[0].displayName имя авторизации(видно)
|
||||
result.list.forEach(function(auth_type, i, arr) {
|
||||
(function() {
|
||||
//profilesList[serverBtn] = profile;
|
||||
//var hold = serverBtn;
|
||||
//var hIndex = index;
|
||||
//serverBtn.setOnAction(function(event) {
|
||||
// serverHolder.set(hold);
|
||||
// settings.profile = hIndex;
|
||||
//});
|
||||
authOptions.getItems().add(auth_type.displayName);
|
||||
})();
|
||||
});
|
||||
overlay.swap(0, processing.overlay, function(event) makeProfilesRequest(function(result) {
|
||||
settings.lastProfiles = result.profiles;
|
||||
updateProfilesList(result.profiles);
|
||||
|
|
2
modules
2
modules
|
@ -1 +1 @@
|
|||
Subproject commit 9e3e773124ced1d3530349a69c21854aa88eaf6b
|
||||
Subproject commit dd587f64151ed253f0a4d0b7e6df5ef71e27bc53
|
Loading…
Reference in a new issue