mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Allow going back to the previous zone info.
This commit is contained in:
parent
1cc798cea3
commit
f2cb04ea8d
@ -2634,6 +2634,14 @@ void View::DrawZoneInfoWindow()
|
||||
{
|
||||
m_findZone.ShowZone( ev.srcloc, m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function ) );
|
||||
}
|
||||
if( !m_zoneInfoStack.empty() )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
if( ImGui::Button( "Go back" ) )
|
||||
{
|
||||
m_zoneInfoWindow = m_zoneInfoStack.back_and_pop();
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
@ -2900,6 +2908,14 @@ void View::DrawGpuInfoWindow()
|
||||
ShowZoneInfo( *parent, m_gpuInfoWindowThread );
|
||||
}
|
||||
}
|
||||
if( !m_gpuInfoStack.empty() )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
if( ImGui::Button( "Go back" ) )
|
||||
{
|
||||
m_gpuInfoWindow = m_gpuInfoStack.back_and_pop();
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user