Mercurial > wow > mailopener
changeset 154:14fdf327124e
TradeSkillMaster's open all button should now be hidden so the text doesn't overlap the MailOpener button's text.
| author | Zerotorescue |
|---|---|
| date | Wed, 30 Nov 2011 23:22:47 +0100 |
| parents | 26376aa95595 |
| children | 5e9f76c9c3d9 |
| files | Core.lua |
| diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Core.lua Wed Jun 29 13:06:51 2011 +0200 +++ b/Core.lua Wed Nov 30 23:22:47 2011 +0100 @@ -312,6 +312,15 @@ end end + if select(6, GetAddOnInfo("TradeSkillMaster_Mailing")) == nil then + self.TSMMailingEnabled = true; -- Set this as an object variable so we can use it in our modules + + -- Ensure this addon is loaded if AddonLoader is installed + if AddonLoader and AddonLoader.LoadAddOn and not IsAddOnLoaded("TradeSkillMaster_Mailing") then + AddonLoader:LoadAddOn("TradeSkillMaster_Mailing"); + end + end + @@ -753,6 +762,13 @@ -- Toggle module (let Postal handle this) Postal.ToggleModule(nil, name, Postal:GetModule(name), status); end + + if self.TSMMailingEnabled then + local TSMMailing = LibStub("AceAddon-3.0"):GetAddon("TradeSkillMaster_Mailing"); + if TSMMailing and TSMMailing.massOpening then + TSMMailing.massOpening:Hide(); + end + end end -- Change Quick Auction's auto mail status based on our prefered settings
