Skip to content

Commit

Permalink
fix issues with Plater #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiatra committed Dec 9, 2022
1 parent e7a6747 commit 0ce9b8a
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions Chocolate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -326,17 +326,12 @@ local function OnDragStart(frame)
end

OnLeave(frame)
-- hide libqtip and libtablet tooltips
local kids = {_G.UIParent:GetChildren()}
for _, child in ipairs(kids) do
if not child:IsForbidden() then
for i = 1, child:GetNumPoints() do
local _,relativeTo,_,_,_ = child:GetPoint(i)
if relativeTo == frame then
child:Hide()
end
end
end
-- hide libqtip tooltips
local libqtip = LibStub('LibQTip-1.0')
if libqtip and libqtip.IterateTooltips then
for _, tooltip in LibStub('LibQTip-1.0'):IterateTooltips() do
libqtip:Release(tooltip)
end
end

ChocolateBar:SetDropPoins(frame)
Expand Down

0 comments on commit 0ce9b8a

Please sign in to comment.