diff --git a/CHANGELOG.md b/CHANGELOG.md index 071d10f2..71488416 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ - Minor: Added `flags.first_message` filter variable (#3292) - Minor: Removed duplicate setting for toggling `Channel Point Redeemed Message` highlights (#3296) - Minor: Clean up chat messages of special line characters prior to sending. (#3312) +- Minor: Added button & label for copying login name of user instead of display name in the user info popout. (#3335) - Bugfix: Fixed colored usernames sometimes not working. (#3170) - Bugfix: Restored ability to send duplicate `/me` messages. (#3166) - Bugfix: Notifications for moderators about other moderators deleting messages can now be disabled. (#3121) diff --git a/src/widgets/dialogs/UserInfoPopup.cpp b/src/widgets/dialogs/UserInfoPopup.cpp index 79761f5c..9cc6c25e 100644 --- a/src/widgets/dialogs/UserInfoPopup.cpp +++ b/src/widgets/dialogs/UserInfoPopup.cpp @@ -39,13 +39,19 @@ const QString TEXT_TITLE("%1's Usercard - #%2"); namespace chatterino { namespace { - Label *addCopyableLabel(LayoutCreator box) + Label *addCopyableLabel(LayoutCreator box, const char *tooltip, + Button **copyButton = nullptr) { auto label = box.emplace