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 = { local defaults = {
global = {}, global = {},
profile = { --[[profile = {
instances = {}, 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_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_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 = {
name = 'ChoreTracker', name = 'ChoreTracker',
type = 'group', type = 'group',
set = options_setter, set = options_setter,
@ -33,7 +33,7 @@ local options = {
args = {}, args = {},
} }
} }
} }]]--
local classColors = {} local classColors = {}
local flagColors = {} local flagColors = {}
@ -67,9 +67,9 @@ function core:OnInitialize()
end end
-- Generate our options and add them to Blizzard Interface -- 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') local ACD = LibStub('AceConfigDialog-3.0')
ACD:AddToBlizOptions('ChoreTracker', 'ChoreTracker') ACD:AddToBlizOptions('ChoreTracker', 'ChoreTracker')]]--
LoadAddOn('LibQTip-1.0') LoadAddOn('LibQTip-1.0')
end end
@ -185,7 +185,6 @@ function core:GetNextVPReset()
--prepare calendar --prepare calendar
local currentCalendarSetting = GetCVar('calendarShowResets') -- get current value and store local currentCalendarSetting = GetCVar('calendarShowResets') -- get current value and store
SetCVar('calendarShowResets', 1) -- set it to what we want SetCVar('calendarShowResets', 1) -- set it to what we want
OpenCalendar()
--figure out what time the server resets daily information --figure out what time the server resets daily information
local questReset = GetQuestResetTime() local questReset = GetQuestResetTime()