From 5e7e3c477bbef9229dd6673dfed4cb081ee85332 Mon Sep 17 00:00:00 2001 From: Repooc Date: Thu, 6 Sep 2012 01:02:38 -0500 Subject: [PATCH] Fix Curse Ticket #3 Signed-off-by: Repooc --- ElvUI_SLE/ElvUI_SLE.lua | 8 ++++++-- ElvUI_SLE/modules/unitframes/update_elements.lua | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/ElvUI_SLE.lua b/ElvUI_SLE/ElvUI_SLE.lua index 5712378..1f9099f 100644 --- a/ElvUI_SLE/ElvUI_SLE.lua +++ b/ElvUI_SLE/ElvUI_SLE.lua @@ -12,7 +12,9 @@ end --Updating things that must be updated only after everything loads function SLE:UpdateThings() - E:GetModule('UnitFrames'):Update_CombatIndicator() + if E.private.unitframe.enable then + E:GetModule('UnitFrames'):Update_CombatIndicator() + end end E.PopupDialogs["VERSION_MISMATCH"] = { @@ -35,7 +37,9 @@ function E:UpdateAll() E:GetModule('DTPanels'):Update() E:GetModule('DTPanels'):DashboardShow() E:GetModule('DTPanels'):DashWidth() - E:GetModule('UnitFrames'):Update_CombatIndicator() + if E.private.unitframe.enable then + E:GetModule('UnitFrames'):Update_CombatIndicator() + end E:GetModule('UIButtons'):UpdateAll() E.db.datatexts.panels.Top_Center = 'Version' E:GetModule('DataTexts'):LoadDataTexts() --Prevents datatexts from not changing on profile switch (Elv's issue) diff --git a/ElvUI_SLE/modules/unitframes/update_elements.lua b/ElvUI_SLE/modules/unitframes/update_elements.lua index e2afa0f..a17052b 100644 --- a/ElvUI_SLE/modules/unitframes/update_elements.lua +++ b/ElvUI_SLE/modules/unitframes/update_elements.lua @@ -1,4 +1,5 @@ local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore +if not E.private.unitframe.enable then return end local UF = E:GetModule('UnitFrames'); local LSM = LibStub("LibSharedMedia-3.0"); -- 1.7.9.5