Glass

Glass

73.6k Downloads

Glass can't copy player name to clipboard due to protected function

dapal-003 opened this issue ยท 0 comments

commented

Describe the bug
When right clicking a username in chat, you can't copy the name to clipboard anymore because the function CopyToClipboard has become protected.

To Reproduce
Steps to reproduce the behavior:

  1. Open up a chat window
  2. Right click on any player's name
  3. Click Copy character name
  4. See error:
2x [ADDON_ACTION_FORBIDDEN] AddOn 'Glass' tried to call the protected function 'CopyToClipboard()'.
[string "@!BugGrabber\BugGrabber.lua"]:519: in function <!BugGrabber\BugGrabber.lua:519>
[string "=[C]"]: in function `CopyToClipboard'
[string "@FrameXML\UnitPopup.lua"]:2065: in function <FrameXML\UnitPopup.lua:1733>
[string "=[C]"]: in function `func'
[string "@SharedXML\UIDropDownMenu.lua"]:914: in function `UIDropDownMenuButton_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Expected behavior
The player name gets put into the clipboard

Does the Glass work if you disable all other addons?
No, Glass copy name does not work even with dissabling all other add-ons:

Additional context (optional)
I remember it working a few weeks ago, not sure when it broke