Permalink
Browse files

Add support for AddonLoader's LoadOn-InterfaceOptions thingy

  • Loading branch information...
1 parent a2e09ed commit 63e4b02c6e9762e24d53d6f2cdcf813b76dd99e6 @tekkub tekkub committed May 25, 2011
Showing with 3 additions and 1 deletion.
  1. +1 −0 picoFPS.toc
  2. +2 −1 tekKonfigAboutPanel.lua
View
@@ -11,6 +11,7 @@
## LoadManagers: AddonLoader
## X-LoadOn-Always: delayed
+## X-LoadOn-InterfaceOptions: picoFPS
LibStub.lua
CallbackHandler-1.0.lua
View
@@ -1,9 +1,10 @@
-local lib, oldminor = LibStub:NewLibrary("tekKonfig-AboutPanel", 5)
+local lib, oldminor = LibStub:NewLibrary("tekKonfig-AboutPanel", 6)
if not lib then return end
function lib.new(parent, addonname)
+ if not parent and AddonLoader and AddonLoader.RemoveInterfaceOptions then AddonLoader:RemoveInterfaceOptions(addonname) end
local frame = CreateFrame("Frame", nil, InterfaceOptionsFramePanelContainer)
frame.name, frame.parent, frame.addonname = parent and "About" or addonname, parent, addonname
frame:Hide()

0 comments on commit 63e4b02

Please sign in to comment.