diff --git a/Modules/Artwork/StatusBars.lua b/Modules/Artwork/StatusBars.lua index 0469b1d2..ab9cfc07 100644 --- a/Modules/Artwork/StatusBars.lua +++ b/Modules/Artwork/StatusBars.lua @@ -270,6 +270,14 @@ function module:CreateBarContainer(barManager, key, index) barContainer:SetFrameStrata('LOW') barContainer:SetFrameLevel(20) + -- Hide with SpartanUI + SpartanUI:HookScript('OnHide', function() + barContainer:Hide() + end) + SpartanUI:HookScript('OnShow', function() + barContainer:Show() + end) + self:SetupBarContainerVisuals(barContainer, barStyle) self:SetupBarContainerPosition(barContainer, barStyle, index)