OMG, those errors and glitches on profile change!
Darthpred [11-27-14 - 09:09]
OMG, those errors and glitches on profile change!
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()