mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
ui-widgets: use proper hook for onhide prevention
This commit is contained in:
+2
-3
@@ -806,9 +806,8 @@ function pfUI.api.SkinScrollbar(frame, always)
|
|||||||
|
|
||||||
-- always show parent frame
|
-- always show parent frame
|
||||||
if always then
|
if always then
|
||||||
RunOOC(function()
|
if not parent.HookScript then parent.HookScript = HookScript end
|
||||||
parent:SetScript("OnHide", function() this:Show() end)
|
parent:HookScript("OnHide", function() this:Show() end)
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user