Skip to content

Commit

Permalink
No connections allowed on emscripten.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed Sep 18, 2024
1 parent 2090540 commit 00f7bee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions profiler/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 00f7bee

Please sign in to comment.