Guarantee instance update by requesting information and then updating when we are told it is ready.
This commit is contained in:
parent
c15bb5c8d5
commit
4f7dce48b5
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue