From 4f7dce48b5b8b6bfd830dd6250999e6ffabf2307 Mon Sep 17 00:00:00 2001 From: atomaka Date: Tue, 20 Sep 2011 12:57:51 -0400 Subject: [PATCH] Guarantee instance update by requesting information and then updating when we are told it is ready. --- ChoreTracker.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ChoreTracker.lua b/ChoreTracker.lua index f1148ae..b461bc6 100644 --- a/ChoreTracker.lua +++ b/ChoreTracker.lua @@ -63,7 +63,7 @@ function core:OnInitialize() if level == 85 then self:RegisterEvent('CALENDAR_UPDATE_EVENT_LIST','GetNextVPReset') self:RegisterEvent('UPDATE_INSTANCE_INFO', 'UpdateChores') - self:RegisterEvent('CHAT_MSG_CURRENCY', 'UpdateChores') + self:RegisterEvent('CHAT_MSG_CURRENCY', 'PrepareUpdate') end -- Get calendar events information @@ -155,6 +155,10 @@ function core:OnEnable() ACD:AddToBlizOptions('ChoreTracker', 'ChoreTracker') end +function core:PrepareUpdate() + GetSavedInstanceInfo() +end + function core:UpdateChores() -- Reset data if necessary core:ResetInstances()