From 00f7beee43daf0de5d16001ee4cf0f3b1170da43 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 18 Sep 2024 19:30:54 +0200 Subject: [PATCH] No connections allowed on emscripten. --- profiler/src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index e6d0b587..679e0ec0 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -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;