Mercurial > wow > mailopener
diff Modules/Config.lua @ 140:42d8e16e8483
Fixed MailOpener tab being added to the Blizzard config twice.
| author | Zerotorescue |
|---|---|
| date | Sat, 29 Jan 2011 22:30:14 +0100 |
| parents | b21c39ea338c |
| children |
line wrap: on
line diff
--- a/Modules/Config.lua Sat Jan 29 22:24:19 2011 +0100 +++ b/Modules/Config.lua Sat Jan 29 22:30:14 2011 +0100 @@ -174,9 +174,12 @@ -- Set a nice default size AceConfigDialog:SetDefaultSize("Mail Opener", 950, 600); - -- In case the addon is loaded from another condition, always call the remove interface options - if AddonLoader and AddonLoader.RemoveInterfaceOptions then - AddonLoader:RemoveInterfaceOptions("Mail Opener"); + -- Remove our old config tab + for k, f in ipairs(INTERFACEOPTIONS_ADDONCATEGORIES) do + if f == "Mail Opener" or f.name == "Mail Opener" then + tremove(INTERFACEOPTIONS_ADDONCATEGORIES, k); + break; + end end -- Add to the blizzard addons options thing
