Make minimap button toggle.
This commit is contained in:
parent
525db9ff7c
commit
c15bb5c8d5
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue