From 5f539ebbe2fc6d6b6e8adb600530205e939a877b Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 22 Mar 2020 14:21:23 +0100 Subject: [PATCH] ui-widgets: delay scrollbar skin hooks to ooc --- api/ui-widgets.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/ui-widgets.lua b/api/ui-widgets.lua index b79750d3..56e2eaf7 100644 --- a/api/ui-widgets.lua +++ b/api/ui-widgets.lua @@ -584,9 +584,11 @@ function pfUI.api.SkinScrollbar(frame, always) -- always show parent frame if always then - parent:Show() - parent.Hide = function(self) frame.thumb:Hide() end - parent.Show = function(self) frame.thumb:Show() end + RunOOC(function() + parent:Show() + parent.Hide = function(self) frame.thumb:Hide() end + parent.Show = function(self) frame.thumb:Show() end + end) end end