1
0
Fork 0

Make minimap button toggle.

This commit is contained in:
Andrew Tomaka 2011-09-19 04:59:17 -04:00
parent 525db9ff7c
commit c15bb5c8d5
1 changed files with 7 additions and 1 deletions

View File

@ -103,7 +103,13 @@ function core:OnEnable()
type = 'data source',
text = 'ChoreTracker',
icon = 'Interface\\AddOns\\ChoreTracker\\icon',
OnClick = function() LibStub("AceConfigDialog-3.0"):Open("ChoreTracker") end,
OnClick = function()
if LibStub("AceConfigDialog-3.0").OpenFrames['ChoreTracker'] then
LibStub('AceConfigDialog-3.0'):Close('ChoreTracker')
else
LibStub('AceConfigDialog-3.0'):Open('ChoreTracker')
end
end,
OnEnter = function(self)
local columnCount = 2
for instance,abbreviation in pairs(trackedInstances) do