Skip to content

Commit

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

if tt == E.SpellBookTooltip then
tt:SetScript('OnUpdate', (tt.UpdateTooltip and AB.SpellBookTooltipOnUpdate) or nil)
local needsUpdate = tt:SetSpellBookItem(slotIndex, slotBank)
tt:SetScript('OnUpdate', (needsUpdate 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 71c92f8

Please sign in to comment.