Skip to content

Commit 684400b

Browse files
authored
Merge pull request #1012 from stalkopat/clipboard-user-text
Add clipboard button for user text in ZoneInfo
2 parents 9074461 + e548258 commit 684400b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

profiler/src/profiler/TracyView_ZoneInfo.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,14 @@ void View::DrawZoneInfoWindow()
447447
}
448448
if( m_worker.HasZoneExtra( ev ) && m_worker.GetZoneExtra( ev ).text.Active() )
449449
{
450-
TextFocused( "User text:", m_worker.GetString( m_worker.GetZoneExtra( ev ).text ) );
450+
TextDisabledUnformatted( "User text:" );
451+
ImGui::SameLine();
452+
if( ClipboardButton( 4 ) )
453+
{
454+
ImGui::SetClipboardText( m_worker.GetString( m_worker.GetZoneExtra( ev ).text ) );
455+
}
456+
ImGui::SameLine();
457+
ImGui::TextUnformatted( m_worker.GetString( m_worker.GetZoneExtra( ev ).text ) );
451458
}
452459

453460
ImGui::Separator();

0 commit comments

Comments
 (0)