From 02ad97ff3f321f29cc5991bb5a552f36f164f33a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 7 Jun 2024 02:20:27 +0200 Subject: [PATCH] Disable achievements UI on emscripten. --- profiler/src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 6314cdf6..71a7ea79 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -1236,11 +1236,14 @@ static void DrawContents() ImGui::EndPopup(); } +#ifndef __EMSCRIPTEN__ if( !s_config.achievementsAsked ) { s_config.achievementsAsked = true; ImGui::OpenPopup( ICON_FA_STAR " Achievements" ); } +#endif + if( ImGui::BeginPopupModal( ICON_FA_STAR " Achievements", nullptr, ImGuiWindowFlags_AlwaysAutoResize ) ) { ImGui::TextUnformatted( "Tracy Profiler is a complex tool with many features. It" );