From c583114810982af4ec71d7ba2d6c40f9c9e9988e Mon Sep 17 00:00:00 2001 From: Mikeprod Date: Fri, 2 Sep 2016 17:58:30 +0200 Subject: [PATCH] removed the order hall bar when databar on top --- core.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core.lua b/core.lua index 9bb95c7..649e0e2 100644 --- a/core.lua +++ b/core.lua @@ -238,11 +238,23 @@ function XIVBar:GetHeight() end function XIVBar:Refresh() + local b = OrderHallCommandBar + if self.frames.bar == nil then return; end self.miniTextPosition = "TOP" + if b and not b:IsVisible() and self.OHBarHide then + b:SetScript("OnShow", b.Show) + self.OHBarHide = false + end if self.db.profile.general.barPosition == 'TOP' then self.miniTextPosition = 'BOTTOM' + if b and b:IsVisible() then + b:UnregisterAllEvents() + b:SetScript("OnShow", b.Hide) + b:Hide() + self.OHBarHide = true + end end local barColor = self.db.profile.color.barColor -- 1.7.9.5