mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Allow easy retrieval of git ref from the about dialog.
This commit is contained in:
parent
45b9aff761
commit
f1bfbb9821
@ -721,6 +721,16 @@ static void DrawContents()
|
||||
tracy::TextCentered( tracy::GitRef );
|
||||
ImGui::PopStyleColor();
|
||||
ImGui::PopFont();
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextUnformatted( "Click to copy git reference to clipboard" );
|
||||
ImGui::EndTooltip();
|
||||
if( ImGui::IsItemClicked() )
|
||||
{
|
||||
ImGui::SetClipboardText( tracy::GitRef );
|
||||
}
|
||||
}
|
||||
ImGui::Spacing();
|
||||
ImGui::TextUnformatted( "A real time, nanosecond resolution, remote telemetry, hybrid\nframe and sampling profiler for games and other applications." );
|
||||
ImGui::Spacing();
|
||||
|
Loading…
Reference in New Issue
Block a user