mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Right click on call stack file name to view source.
This commit is contained in:
parent
5752156695
commit
12f2080387
@ -5714,6 +5714,7 @@ void View::DrawCallstackWindow()
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::Text( "Click on entry to copy it to clipboard." );
|
||||
ImGui::Text( "Right click on entry to try to open source file." );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
ImGui::NextColumn();
|
||||
@ -5761,6 +5762,13 @@ void View::DrawCallstackWindow()
|
||||
{
|
||||
ImGui::SetClipboardText( txt );
|
||||
}
|
||||
if( ImGui::IsItemClicked( 1 ) )
|
||||
{
|
||||
if( FileExists( txt ) )
|
||||
{
|
||||
SetTextEditorFile( txt, frame->line );
|
||||
}
|
||||
}
|
||||
ImGui::PopTextWrapPos();
|
||||
ImGui::NextColumn();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user