Add AddonLoader LoadOn-InterfaceOptions support

This commit is contained in:
tekkub :bear: 
2011-05-24 04:14:05 -06:00
parent 1661399f24
commit f5b9f7ef8e
2 changed files with 4 additions and 1 deletions

View File

@ -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()