Allow going back to the previous zone info.

This commit is contained in:
Bartosz Taudul 2018-05-02 19:25:52 +02:00
parent 1cc798cea3
commit f2cb04ea8d

View File

@ -2634,6 +2634,14 @@ void View::DrawZoneInfoWindow()
{ {
m_findZone.ShowZone( ev.srcloc, m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function ) ); 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(); ImGui::Separator();
@ -2900,6 +2908,14 @@ void View::DrawGpuInfoWindow()
ShowZoneInfo( *parent, m_gpuInfoWindowThread ); ShowZoneInfo( *parent, m_gpuInfoWindowThread );
} }
} }
if( !m_gpuInfoStack.empty() )
{
ImGui::SameLine();
if( ImGui::Button( "Go back" ) )
{
m_gpuInfoWindow = m_gpuInfoStack.back_and_pop();
}
}
ImGui::Separator(); ImGui::Separator();