mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-09 11:58:36 +00:00
Fix UI logic.
This commit is contained in:
@@ -148,9 +148,12 @@ void View::DrawOptions()
|
||||
{
|
||||
ImGui::PushID( idx++ );
|
||||
SmallCheckbox( m_worker.GetSectionCategoryDescription( v.first ), &Vis( v.first ) );
|
||||
ImGui::SameLine();
|
||||
auto it = sections.find( v.first );
|
||||
if( it != sections.end() ) ImGui::TextDisabled( "(%s)", RealToString( it->second.size() ) );
|
||||
if( it != sections.end() )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(%s)", RealToString( it->second.size() ) );
|
||||
}
|
||||
ImGui::PopID();
|
||||
}
|
||||
ImGui::TreePop();
|
||||
|
||||
Reference in New Issue
Block a user