From deef2fd5fb41a63c671875863b61b09048ccf133 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Thu, 21 Feb 2013 23:24:51 +0400 Subject: [PATCH] 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! --- ElvUI_SLE/ElvUI_SLE.lua | 2 ++ ElvUI_SLE/modules/farm/farm.lua | 1 + 2 files changed, 3 insertions(+) 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() -- 1.7.9.5