From 282989eeffc9563a3784da4a22d0ed75c1b869cb Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 3 Oct 2020 15:11:23 +0200 Subject: [PATCH] ui-widgets: only hook function outside combat --- api/ui-widgets.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/ui-widgets.lua b/api/ui-widgets.lua index eea25396..1f392f2f 100644 --- a/api/ui-widgets.lua +++ b/api/ui-widgets.lua @@ -806,8 +806,10 @@ function pfUI.api.SkinScrollbar(frame, always) -- always show parent frame if always then - if not parent.HookScript then parent.HookScript = HookScript end - parent:HookScript("OnHide", function() this:Show() end) + RunOOC(function() + if not parent.HookScript then parent.HookScript = HookScript end + parent:HookScript("OnHide", function() this:Show() end) + end) end end