From f13bb0bf52ae8ea3f16794da0357c4dae711a19e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 15 Jul 2026 02:08:44 +0200 Subject: [PATCH] Fix UI logic. --- profiler/src/profiler/TracyView_Options.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/profiler/src/profiler/TracyView_Options.cpp b/profiler/src/profiler/TracyView_Options.cpp index fba99e6b..3a655807 100644 --- a/profiler/src/profiler/TracyView_Options.cpp +++ b/profiler/src/profiler/TracyView_Options.cpp @@ -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();