Award the manual achievement from the shared window state.

All ManualWindow instances share the show state, so one check covers the
welcome screen and the view; the old copies were button-only and gated on
a construction-time config snapshot.
This commit is contained in:
Bartosz Taudul
2026-10-11 21:40:43 +02:00
parent f25b096adf
commit 607f6a7caf
2 changed files with 3 additions and 4 deletions

View File

@@ -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();

View File

@@ -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 );