Skip to content

Commit

Permalink
Adding missing cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
cont1nuity committed Jan 21, 2025
1 parent b9e6dc5 commit db09c78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nop-button.lua
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,14 @@ function NOP:ButtonShow() -- display button
if (bt:IsMouseMotionFocus()) then self:ButtonOnEnter(bt) end -- update tooltip if mouse is over button

--cleanup
bt:SetAttribute("type1", nil)
bt:SetAttribute("macrotext1", nil)
bt:SetAttribute("type", nil)
bt:SetAttribute("spell", nil)
bt:SetAttribute("target-item", nil)
bt:SetAttribute("item", nil)
bt:SetAttribute("target-bag", nil)
bt:SetAttribute("target-slot", nil)

if bt.itemTexture then
if bt.mtext then
Expand Down

0 comments on commit db09c78

Please sign in to comment.