Quantcast

Farm module didn't update on profile change.

Darthpred [02-21-13 - 19:24]
Farm module didn't update on profile change.
Also. Why the hell i had to put layout update twice? Other way it just caused graphical bugs!
Filename
ElvUI_SLE/ElvUI_SLE.lua
ElvUI_SLE/modules/farm/farm.lua
diff --git a/ElvUI_SLE/ElvUI_SLE.lua b/ElvUI_SLE/ElvUI_SLE.lua
index 4a7190c..957f76b 100644
--- a/ElvUI_SLE/ElvUI_SLE.lua
+++ b/ElvUI_SLE/ElvUI_SLE.lua
@@ -87,6 +87,8 @@ function E:UpdateAll()
 	end
 	E:GetModule('UIButtons'):UpdateAll()
 	E:GetModule('RaidMarks'):Update()
+	E:GetModule('Farm'):UpdateLayout()
+	E:GetModule('Farm'):UpdateLayout()
 	SLE:ChatPos()
 end

diff --git a/ElvUI_SLE/modules/farm/farm.lua b/ElvUI_SLE/modules/farm/farm.lua
index 313800c..d1927f0 100644
--- a/ElvUI_SLE/modules/farm/farm.lua
+++ b/ElvUI_SLE/modules/farm/farm.lua
@@ -262,6 +262,7 @@ function F:UpdateBar(bar, layoutfunc, zonecheck, anchor, buttons, category)
 end

 function F:UpdateLayout(event)
+	if not SeedAnchor then return end
 	if event == "UNIT_QUEST_LOG_CHANGED" then E:Delay(1, F.UpdateLayout) end --For updating borders after quest was complited. for some reason events fires before quest disappeares from log
 	if InCombatLockdown() then return end
 	F:ResizeFrames()