mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 09:56:03 +00:00
ui-widgets: only hook function outside combat
This commit is contained in:
+4
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user