Call stack tree nodes that have no siblings are expanded by default.

This commit is contained in:
Bartosz Taudul 2018-08-18 20:00:24 +02:00
parent 145949968e
commit 4060a59b4f

View File

@ -6882,7 +6882,14 @@ void View::DrawFrameTreeLevel( std::vector<CallstackFrameTree>& tree, int& idx )
else
{
ImGui::PushID( lidx++ );
expand = ImGui::TreeNode( m_worker.GetString( frame->name ) );
if( tree.size() == 1 )
{
expand = ImGui::TreeNodeEx( m_worker.GetString( frame->name ), ImGuiTreeNodeFlags_DefaultOpen );
}
else
{
expand = ImGui::TreeNode( m_worker.GetString( frame->name ) );
}
ImGui::PopID();
}