mirror of
https://github.com/wolfpld/tracy
synced 2026-02-15 13:42:17 +00:00
Allow going back to the previous zone info.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user