Skip to content

Commit

Permalink
shouldnt need to call SetSpellBookItem twice
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Nov 7, 2024
1 parent 6470371 commit d22b344
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ElvUI/Core/Modules/ActionBars/ActionBars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1024,8 +1024,7 @@ function AB:SpellButtonOnEnter(_, tt)
end

if tt == E.SpellBookTooltip then
local needsUpdate = tt:SetSpellBookItem(slotIndex, slotBank)
tt:SetScript('OnUpdate', (needsUpdate and AB.SpellBookTooltipOnUpdate) or nil)
tt:SetScript('OnUpdate', (tt.UpdateTooltip and AB.SpellBookTooltipOnUpdate) or nil)
end

if not E.Cata then -- Cata Flyout one will error cause its not updated
Expand Down

0 comments on commit d22b344

Please sign in to comment.