mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-08 00:23:47 +00:00
Center timeline on crash if clicked on crash text in callstack window.
This commit is contained in:
@@ -190,7 +190,15 @@ void View::DrawCallstackTable( const CallstackFrameId* data, size_t size, uint64
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
TextColoredUnformatted( ImVec4( 1.f, 0.2f, 0.2f, 1.f ), ICON_FA_SKULL " Crash" );
|
||||
if( ImGui::IsItemHovered() ) CrashTooltip();
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
CrashTooltip();
|
||||
if( ImGui::IsItemClicked() )
|
||||
{
|
||||
auto& crash = m_worker.GetCrashEvent();
|
||||
CenterAtTime( crash.time );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( globalEntriesButton && m_worker.AreCallstackSamplesReady() )
|
||||
|
||||
Reference in New Issue
Block a user