Fix UI logic.

This commit is contained in:
Bartosz Taudul
2026-07-15 02:08:44 +02:00
parent 0caee2147c
commit f13bb0bf52

View File

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