No connections allowed on emscripten.

This commit is contained in:
Bartosz Taudul 2024-09-18 19:30:54 +02:00
parent 20905406da
commit 00f7beee43
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -964,7 +964,14 @@ static void DrawContents()
ImGui::EndCombo();
}
}
#ifdef __EMSCRIPTEN__
ImGui::BeginDisabled();
#endif
connectClicked |= ImGui::Button( ICON_FA_WIFI " Connect" );
#ifdef __EMSCRIPTEN__
ImGui::EndDisabled();
connectClicked = false;
#endif
if( connectClicked && *addr && !loadThread.joinable() )
{
auto aptr = addr;