libtipscan: make sure the owner is set each call

For some reason, early initialized tooltips without
a WDB cache, won't get attached properly. It seems
like they lose their owner when the WDB cache gets
ready. Running :SetOwner() again later when caches
are ready fixes that somehow.
This commit is contained in:
shagu
2024-04-21 15:00:39 +02:00
parent 5dda502912
commit 3f21780980
+1
View File
@@ -167,6 +167,7 @@ libtipscan._registry = setmetatable({},{__index = function(t,k)
local old = v[method]
v[method] = function(v, a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)
v:ClearLines()
v:SetOwner(WorldFrame, "ANCHOR_NONE")
return old(v, a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)
end
end