1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Merge pull request #1012 from stalkopat/clipboard-user-text

Add clipboard button for user text in ZoneInfo
This commit is contained in:
Bartosz Taudul 2025-03-25 22:31:31 +01:00 committed by GitHub
commit 684400b45c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -447,7 +447,14 @@ void View::DrawZoneInfoWindow()
}
if( m_worker.HasZoneExtra( ev ) && m_worker.GetZoneExtra( ev ).text.Active() )
{
TextFocused( "User text:", m_worker.GetString( m_worker.GetZoneExtra( ev ).text ) );
TextDisabledUnformatted( "User text:" );
ImGui::SameLine();
if( ClipboardButton( 4 ) )
{
ImGui::SetClipboardText( m_worker.GetString( m_worker.GetZoneExtra( ev ).text ) );
}
ImGui::SameLine();
ImGui::TextUnformatted( m_worker.GetString( m_worker.GetZoneExtra( ev ).text ) );
}
ImGui::Separator();