Commit abc6d0a5 authored by Tukz's avatar Tukz

Fix double hook registration. This should fix target name displayed 2 times in tooltip.

parent 560e28be
......@@ -375,14 +375,12 @@ function Tooltip:Enable()
hooksecurefunc("GameTooltip_SetDefaultAnchor", self.SetTooltipDefaultAnchor)
for _, Tooltip in pairs(Tooltip.Tooltips) do
if Tooltip == GameTooltip then
Tooltip:HookScript("OnUpdate", self.OnUpdate)
Tooltip:HookScript("OnTooltipSetUnit", self.OnTooltipSetUnit)
Tooltip:HookScript("OnTooltipSetItem", self.OnTooltipSetItem)
end
Tooltip:HookScript("OnShow", self.Skin)
end
GameTooltip:HookScript("OnUpdate", self.OnUpdate)
GameTooltip:HookScript("OnTooltipSetUnit", self.OnTooltipSetUnit)
GameTooltip:HookScript("OnTooltipSetItem", self.OnTooltipSetItem)
ItemRefCloseButton:SkinCloseButton()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment