Skip to content

Commit

Permalink
Fix the hearthstone tooltip not updating when switching hearthstones.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justw8 committed Oct 26, 2024
1 parent 994d83e commit b315b09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TeleportMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,12 @@ function tpm:updateHearthstone()
SetTextureByItemId(hearthstoneButton, db.hearthstone)
hearthstoneButton:SetAttribute("type", "toy")
hearthstoneButton:SetAttribute("toy", db.hearthstone)
hearthstoneButton:SetScript(
"OnEnter",
function(self)
tpm:setToolTip(self, "toy", db.hearthstone, true)
end
)
else
if GetItemCount(6948) == 0 then
print(APPEND .. L["No Hearthtone In Bags"])
Expand Down

0 comments on commit b315b09

Please sign in to comment.