From e5482580cd67aa92c526ce2dd12a57b46ea857cb Mon Sep 17 00:00:00 2001 From: stalkopat Date: Tue, 25 Mar 2025 18:13:59 +0000 Subject: [PATCH] add clipboard button for user text in ZoneInfo --- profiler/src/profiler/TracyView_ZoneInfo.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_ZoneInfo.cpp b/profiler/src/profiler/TracyView_ZoneInfo.cpp index 4c13b7de..e145e8dc 100644 --- a/profiler/src/profiler/TracyView_ZoneInfo.cpp +++ b/profiler/src/profiler/TracyView_ZoneInfo.cpp @@ -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();