From df3e8597c4fb642af215ba3493f1bd8b4f8b3aea Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 24 Mar 2019 23:55:38 +0100 Subject: [PATCH] Focusing timeline on crash from trace info window. --- server/TracyView.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 6698ea3e..26bfd802 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -8551,8 +8551,17 @@ void View::DrawInfo() TextDisabledUnformatted( "Reason:" ); ImGui::SameLine(); ImGui::TextWrapped( "%s", m_worker.GetString( crash.message ) ); +#ifdef TRACY_EXTENDED_FONT + if( ImGui::Button( ICON_FA_MICROSCOPE " Focus" ) ) +#else + if( ImGui::Button( "Focus" ) ) +#endif + { + CenterAtTime( crash.time ); + } if( crash.callstack != 0 ) { + ImGui::SameLine(); bool hilite = m_callstackInfoWindow == crash.callstack; if( hilite ) {