Display count of sections in each category.

This commit is contained in:
Bartosz Taudul
2026-07-14 19:17:22 +02:00
parent 88c491e0f9
commit 916e62de17

View File

@@ -102,7 +102,8 @@ void View::DrawOptions()
DefaultMarker(default_markers_active);
}
if( !m_worker.GetSections().empty() )
const auto& sections = m_worker.GetSections();
if( !sections.empty() )
{
ImGui::Separator();
val = m_vd.drawSections;
@@ -147,6 +148,9 @@ void View::DrawOptions()
{
ImGui::PushID( idx++ );
SmallCheckbox( m_worker.GetSectionCategoryDescription( v.first ), &Vis( v.first ) );
ImGui::SameLine();
auto it = sections.find( v.first );
ImGui::TextDisabled( "(%s)", RealToString( it->second.size() ) );
ImGui::PopID();
}
ImGui::TreePop();