Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dapal-003 opened this issue Jul 1, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@dapal-003
Copy link

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

@dapal-003 dapal-003 added the bug Something isn't working label Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant