ui-widgets: use proper hook for onhide prevention

This commit is contained in:
shagu
2020-10-03 15:08:06 +02:00
parent 892ef154b0
commit 2b51e77831
+2 -3
View File
@@ -806,9 +806,8 @@ function pfUI.api.SkinScrollbar(frame, always)
-- always show parent frame
if always then
RunOOC(function()
parent:SetScript("OnHide", function() this:Show() end)
end)
if not parent.HookScript then parent.HookScript = HookScript end
parent:HookScript("OnHide", function() this:Show() end)
end
end