Skip to content

Commit

Permalink
Fixed a bug that caused ElvUI users to click Gem Buttons that weren't…
Browse files Browse the repository at this point in the history
… Visible
  • Loading branch information
Larsj02 committed May 20, 2024
1 parent a40c2d5 commit 069baf5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UIElements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ function uiElements:CreateExtractButton(parent)
extractButton:SetAllPoints()
extractButton:SetScript("PreClick", extractPreClick)
extractButton:SetScript("PostClick", extractPostClick)
extractButton:SetScript("OnHide", function (btn)
btn:EnableMouse(false)
end)
extractButton:SetScript("OnShow", function (btn)
btn:EnableMouse(true)
end)
extractButton:RegisterForClicks("AnyDown")
extractButton:SetAttribute("pressAndHoldAction", 1)
extractButton:SetAttribute("type", "macro")
Expand Down

0 comments on commit 069baf5

Please sign in to comment.