From 2b51e7783188175bc67aee96df90e66810b96e9f Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 3 Oct 2020 15:08:06 +0200 Subject: [PATCH] ui-widgets: use proper hook for onhide prevention --- api/ui-widgets.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/ui-widgets.lua b/api/ui-widgets.lua index 8159fbce..eea25396 100644 --- a/api/ui-widgets.lua +++ b/api/ui-widgets.lua @@ -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