From f5b9f7ef8e20139cb3aed20cda6864ece0b9686c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tekkub=20=3Abear=3A=E2=80=82?= Date: Tue, 24 May 2011 04:14:05 -0600 Subject: [PATCH] Add AddonLoader LoadOn-InterfaceOptions support --- GnomishVendorShrinker.toc | 2 ++ tekKonfig/tekKonfigAboutPanel.lua | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/GnomishVendorShrinker.toc b/GnomishVendorShrinker.toc index c9843fd..571aa0d 100644 --- a/GnomishVendorShrinker.toc +++ b/GnomishVendorShrinker.toc @@ -7,9 +7,11 @@ ## X-Website: http://www.tekkub.net/ ## X-Email: tekkub-wow@googlegroups.com ## X-Category: Misc +## X-Icon: Interface\Icons\INV_Misc_Toy_07 ## LoadManagers: AddonLoader ## X-LoadOn-Merchant: true +## X-LoadOn-InterfaceOptions: GnomishVendorShrinker tekFunks\gsc.lua tekKonfig\tekKonfig.xml diff --git a/tekKonfig/tekKonfigAboutPanel.lua b/tekKonfig/tekKonfigAboutPanel.lua index f7ea166..80f0a7c 100644 --- a/tekKonfig/tekKonfigAboutPanel.lua +++ b/tekKonfig/tekKonfigAboutPanel.lua @@ -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()