mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Call stack tree nodes that have no siblings are expanded by default.
This commit is contained in:
parent
145949968e
commit
4060a59b4f
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user