# HG changeset patch # User Zerotorescue # Date 1296336614 -3600 # Node ID 42d8e16e8483c6653c2b295a7d47c4c16de3564f # Parent debff5ad3de4428b60c8c498027efff86ae8c789 Fixed MailOpener tab being added to the Blizzard config twice. diff -r debff5ad3de4 -r 42d8e16e8483 Modules/Config.lua --- 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