mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-14 01:10:48 +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
|
-- always show parent frame
|
||||||
if always then
|
if always then
|
||||||
if not parent.HookScript then parent.HookScript = HookScript end
|
RunOOC(function()
|
||||||
parent:HookScript("OnHide", function() this:Show() end)
|
if not parent.HookScript then parent.HookScript = HookScript end
|
||||||
|
parent:HookScript("OnHide", function() this:Show() end)
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user