Copy links with CopyToClipboard instead of a popup

Clicking a chat URL and the GUI's Donate/GitHub/Website buttons now put the address straight on the clipboard and say so in chat. The url link goes through ClassicAPI's LinkUtil handler registry, so SetItemRef is no longer replaced. Exporting a profile also copies the string.
This commit is contained in:
Brues
2026-10-30 23:45:08 -05:00
parent cff4be9416
commit ff5deac0ec
12 changed files with 24 additions and 70 deletions
+8
View File
@@ -579,6 +579,14 @@ function pfUI.api.SendChatMessageWide(msg)
SendChatMessage(msg,channel)
end
-- [ CopyText ]
-- Copies text to the clipboard and says so in chat
-- 'text' [string] the text to copy
function pfUI.api.CopyText(text)
CopyToClipboard(text)
DEFAULT_CHAT_FRAME:AddMessage("|cff33ffccpf|cffffffffUI|r: " .. T["Copied to clipboard"])
end
-- [ GroupInfoByName ]
-- Gets the unit id by name
-- 'name' [string] party or raid member