eepp: Added UIAnchor (Anchor or a).

UIRelativeLayout: Respect max width and height when using match_parent.
ecode: New icon WIP.
Fixed LSP TCP server connecting from the main thread (now connects async).
This commit is contained in:
Martín Lucas Golini
2023-03-20 16:33:35 -03:00
parent a231e4dd85
commit 854e148a36
21 changed files with 182 additions and 32 deletions

View File

@@ -1079,6 +1079,15 @@ bool LSPClientServer::socketConnect() {
return false;
}
void LSPClientServer::socketInitialize() {
getThreadPool()->run( [this]() {
bool ret = socketConnect();
mUsingSocket = true;
if ( ret )
initialize();
} );
}
bool LSPClientServer::start() {
std::string cmd( mLSP.command );
if ( !mLSP.commandParameters.empty() ) {
@@ -1101,20 +1110,16 @@ bool LSPClientServer::start() {
}
if ( ret && !mLSP.host.empty() ) {
ret = socketConnect();
mUsingSocket = true;
if ( ret )
initialize();
socketInitialize();
ret = true;
}
return ret;
} else {
bool ret = socketConnect();
mUsingSocket = true;
if ( ret )
initialize();
return ret;
if ( !mLSP.host.empty() && mLSP.port != 0 ) {
socketInitialize();
return true;
}
}
return false;
}