Allow easy retrieval of git ref from the about dialog.

This commit is contained in:
Bartosz Taudul 2024-09-08 17:47:46 +02:00
parent 45b9aff761
commit f1bfbb9821
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -721,6 +721,16 @@ static void DrawContents()
tracy::TextCentered( tracy::GitRef ); tracy::TextCentered( tracy::GitRef );
ImGui::PopStyleColor(); ImGui::PopStyleColor();
ImGui::PopFont(); 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::Spacing();
ImGui::TextUnformatted( "A real time, nanosecond resolution, remote telemetry, hybrid\nframe and sampling profiler for games and other applications." ); ImGui::TextUnformatted( "A real time, nanosecond resolution, remote telemetry, hybrid\nframe and sampling profiler for games and other applications." );
ImGui::Spacing(); ImGui::Spacing();