diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index de13ed11..027e2290 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -835,7 +835,6 @@ static void DrawContents() if( ImGui::Button( ICON_FA_BOOK " Manual" ) ) { s_manualWindow.Show() = true; - if( tracy::s_config.achievements ) s_achievements->Achieve( "manual" ); } ImGui::SameLine(); if( ImGui::Button( ICON_FA_EARTH_AMERICAS " Web" ) ) @@ -1587,9 +1586,10 @@ Would you like to enable achievements? } } - if( !viewPtr && s_manualWindow.Show() ) + if( s_manualWindow.Show() ) { - s_manualWindow.Draw( s_manualMarkdown ); + if( tracy::s_config.achievements ) s_achievements->Achieve( "manual" ); + if( !viewPtr ) s_manualWindow.Draw( s_manualMarkdown ); } bptr->EndFrame(); diff --git a/profiler/src/profiler/TracyView.cpp b/profiler/src/profiler/TracyView.cpp index 99a454ac..06f9fbbb 100644 --- a/profiler/src/profiler/TracyView.cpp +++ b/profiler/src/profiler/TracyView.cpp @@ -769,7 +769,6 @@ bool View::DrawImpl() if( m_worker.GetZoneCount() > 100 * 1000 * 1000 ) Achieve( "100million" ); if( m_worker.GetCallstackSampleCount() > 0 ) Achieve( "samplingIntro" ); if( m_worker.AreFramesUsed() ) Achieve( "instrumentFrames" ); - if( m_manualWindow.Show() ) Achieve( "manual" ); } Attention( m_attnWorking );