public
Description: WoW Addon - Crowd control assistance
Homepage: http://www.tekkub.net
Clone URL: git://github.com/tekkub/controlfreak.git
Click here to lend your support to: controlfreak and make a donation at www.pledgie.com !
Add AddonLoad LDB launcher field
tekkub (author)
Thu Jul 24 11:59:52 -0700 2008
commit  3899cd563e41eb27a2c50e3f0ffb4897601ca554
tree    17b412d3d30c9ac6a83f970f343fdb98ad8a1456
parent  044419ad2f1d9b1effcdbeb697d614e5e37f8a13
...
109
110
111
112
 
 
113
114
115
116
 
...
109
110
111
 
112
113
114
115
 
116
117
0
@@ -109,8 +109,9 @@ SlashCmdList.CONTROLFREAK = function() InterfaceOptionsFrame_OpenToFrame(frame)
0
 -- Quicklaunch registration --
0
 ----------------------------------------
0
 
0
-LibStub:GetLibrary("LibDataBroker-1.1"):NewDataObject("ControlFreak", {
0
+local ldb = LibStub:GetLibrary("LibDataBroker-1.1")
0
+local launcher = ldb:GetDataObjectByName("ControlFreak") or ldb:NewDataObject("ControlFreak", {
0
   type = "launcher",
0
   icon = "Interface\\AddOns\\ControlFreak\\icon",
0
- OnClick = function() InterfaceOptionsFrame_OpenToFrame(frame) end,
0
 })
0
+function launcher.OnClick() InterfaceOptionsFrame_OpenToFrame(frame) end
...
15
16
17
 
18
19
20
...
15
16
17
18
19
20
21
0
@@ -15,6 +15,7 @@
0
 ## LoadManagers: AddonLoader
0
 ## X-LoadOn-NotResting: true
0
 ## X-LoadOn-Slash: /freak
0
+## X-LoadOn-LDB-Launcher: Interface\AddOns\ControlFreak\icon
0
 
0
 Dongle.lua
0
 

Comments

    No one has commented yet.