ui-widgets: only hook function outside combat

This commit is contained in:
shagu
2020-10-03 15:11:23 +02:00
parent 2b51e77831
commit 282989eeff
+4 -2
View File
@@ -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