Skip to content

Commit

Permalink
Just making sure to get rid of the weird Invisible frame bug before s…
Browse files Browse the repository at this point in the history
…hipping the new Clickable Feature
  • Loading branch information
Larsj02 committed May 20, 2024
1 parent efd0a6f commit d8998d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UIElements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,11 @@ function uiElements:CreateIcon(parent, data)
button:SetScript("OnUpdate", updateCooldown)
button:SetScript("OnEnter", iconHoverEnter)
button:SetScript("OnLeave", iconHoverLeave)
button:SetScript("OnHide", function ()
button:EnableMouse(false)
end)
button:SetScript("OnShow", function ()
button:EnableMouse(true)
updateSpellCount(button)
updateItemCountOrSlot(button)
end)
Expand Down

0 comments on commit d8998d4

Please sign in to comment.