mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +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::BeginTooltip();
|
||||||
ImGui::Text( "Click on entry to copy it to clipboard." );
|
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::EndTooltip();
|
||||||
}
|
}
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
@ -5761,6 +5762,13 @@ void View::DrawCallstackWindow()
|
|||||||
{
|
{
|
||||||
ImGui::SetClipboardText( txt );
|
ImGui::SetClipboardText( txt );
|
||||||
}
|
}
|
||||||
|
if( ImGui::IsItemClicked( 1 ) )
|
||||||
|
{
|
||||||
|
if( FileExists( txt ) )
|
||||||
|
{
|
||||||
|
SetTextEditorFile( txt, frame->line );
|
||||||
|
}
|
||||||
|
}
|
||||||
ImGui::PopTextWrapPos();
|
ImGui::PopTextWrapPos();
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user