From 3b2cc13b6c512867a76c31a981ee375238c27cda Mon Sep 17 00:00:00 2001 From: Darthpred Date: Thu, 27 Nov 2014 13:09:30 +0400 Subject: [PATCH] OMG, those errors and glitches on profile change! --- ElvUI_SLE/core/toolkit.lua | 2 +- ElvUI_SLE/modules/raidmarkers.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ElvUI_SLE/core/toolkit.lua b/ElvUI_SLE/core/toolkit.lua index c11ffe0..879ba7f 100644 --- a/ElvUI_SLE/core/toolkit.lua +++ b/ElvUI_SLE/core/toolkit.lua @@ -66,7 +66,7 @@ local function UpdateAll() LT:LootShow() LT:Update() UB:FrameSize() - RM:UpdateBar() + RM:UpdateBar(true) F:UpdateLayout() CH:GMIconUpdate() M:TextWidth() diff --git a/ElvUI_SLE/modules/raidmarkers.lua b/ElvUI_SLE/modules/raidmarkers.lua index 414abd8..ff35c5f 100644 --- a/ElvUI_SLE/modules/raidmarkers.lua +++ b/ElvUI_SLE/modules/raidmarkers.lua @@ -72,7 +72,8 @@ function RM:UpdateWorldMarkersAndTooltips() end end -function RM:UpdateBar() +function RM:UpdateBar(update) + if update then self.db = E.db.sle.raidmarkers end local height, width if self.db.orientation == "VERTICAL" then @@ -94,7 +95,6 @@ function RM:UpdateBar() button:SetWidth(self.db.buttonSize) button:SetHeight(self.db.buttonSize) - if self.db.orientation == "VERTICAL" then head = self.db.reverse and "BOTTOM" or "TOP" tail = self.db.reverse and "TOP" or "BOTTOM" @@ -119,7 +119,7 @@ end function RM:ToggleSettings() if self.db.enable then - RegisterStateDriver(self.frame, "visibility", self.db.visibility == 'DEFAULT' and '[noexists, nogroup] hide; show' or '[group] show; hide') + RegisterStateDriver(self.frame, "visibility", self.db.visibility == 'DEFAULT' and '[noexists, nogroup] hide; show' or '[group] show; hide') else UnregisterStateDriver(self.frame, "visibility") self.frame:Hide() -- 1.7.9.5