From 4d0396fa0690452433b47c57518561e877d61fe1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 28 Mar 2018 01:47:20 +0200 Subject: [PATCH] No auto-expand of child zones. --- server/TracyView.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index d4e31137..66d4c81d 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2466,8 +2466,7 @@ void View::DrawZoneInfoWindow() if( !ev.child.empty() ) { - ImGui::Separator(); - bool expand = ImGui::TreeNodeEx( "Child zones", ImGuiTreeNodeFlags_DefaultOpen ); + bool expand = ImGui::TreeNode( "Child zones" ); ImGui::SameLine(); ImGui::TextDisabled( "(%s)", RealToString( ev.child.size(), true ) ); if( expand ) @@ -2579,8 +2578,7 @@ void View::DrawGpuInfoWindow() if( !ev.child.empty() ) { - ImGui::Separator(); - bool expand = ImGui::TreeNodeEx( "Child zones", ImGuiTreeNodeFlags_DefaultOpen ); + bool expand = ImGui::TreeNode( "Child zones" ); ImGui::SameLine(); ImGui::TextDisabled( "(%s)", RealToString( ev.child.size(), true ) ); if( expand )