1
0
Fork 0

Remove OpenCalendar() call; causes crit error on logout if pending event...for some people?

This commit is contained in:
Andrew Tomaka 2011-09-17 00:44:46 -04:00
parent 41d6b3beaa
commit 0fd0d954f6

View file

@ -13,14 +13,14 @@ local trackedInstances = {
local defaults = {
global = {},
profile = {
--[[profile = {
instances = {},
},
},]]--
}
local options_setter = function(info, v) local t=core.db.profile for k=1,#info-1 do t=t[info[k]] end t[info[#info]]=v end
local options_getter = function(info) local t=core.db.profile for k=1,#info-1 do t=t[info[k]] end return t[info[#info]] end
local options = {
--local options_setter = function(info, v) local t=core.db.profile for k=1,#info-1 do t=t[info[k]] end t[info[#info]]=v end
--local options_getter = function(info) local t=core.db.profile for k=1,#info-1 do t=t[info[k]] end return t[info[#info]] end
--[[local options = {
name = 'ChoreTracker',
type = 'group',
set = options_setter,
@ -33,7 +33,7 @@ local options = {
args = {},
}
}
}
}]]--
local classColors = {}
local flagColors = {}
@ -67,9 +67,9 @@ function core:OnInitialize()
end
-- Generate our options and add them to Blizzard Interface
LibStub('AceConfigRegistry-3.0'):RegisterOptionsTable('ChoreTracker', options)
--[[LibStub('AceConfigRegistry-3.0'):RegisterOptionsTable('ChoreTracker', options)
local ACD = LibStub('AceConfigDialog-3.0')
ACD:AddToBlizOptions('ChoreTracker', 'ChoreTracker')
ACD:AddToBlizOptions('ChoreTracker', 'ChoreTracker')]]--
LoadAddOn('LibQTip-1.0')
end
@ -185,7 +185,6 @@ function core:GetNextVPReset()
--prepare calendar
local currentCalendarSetting = GetCVar('calendarShowResets') -- get current value and store
SetCVar('calendarShowResets', 1) -- set it to what we want
OpenCalendar()
--figure out what time the server resets daily information
local questReset = GetQuestResetTime()