Mercurial > wow > mailopener
comparison Core.lua @ 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 | 2af0f77dbae0 |
| children | 57f3b638af39 |
comparison
equal
deleted
inserted
replaced
| 153:26376aa95595 | 154:14fdf327124e |
|---|---|
| 310 if AddonLoader and AddonLoader.LoadAddOn and not IsAddOnLoaded("AuctionProfitMaster") then | 310 if AddonLoader and AddonLoader.LoadAddOn and not IsAddOnLoaded("AuctionProfitMaster") then |
| 311 AddonLoader:LoadAddOn("AuctionProfitMaster"); | 311 AddonLoader:LoadAddOn("AuctionProfitMaster"); |
| 312 end | 312 end |
| 313 end | 313 end |
| 314 | 314 |
| 315 if select(6, GetAddOnInfo("TradeSkillMaster_Mailing")) == nil then | |
| 316 self.TSMMailingEnabled = true; -- Set this as an object variable so we can use it in our modules | |
| 317 | |
| 318 -- Ensure this addon is loaded if AddonLoader is installed | |
| 319 if AddonLoader and AddonLoader.LoadAddOn and not IsAddOnLoaded("TradeSkillMaster_Mailing") then | |
| 320 AddonLoader:LoadAddOn("TradeSkillMaster_Mailing"); | |
| 321 end | |
| 322 end | |
| 323 | |
| 315 | 324 |
| 316 | 325 |
| 317 | 326 |
| 318 | 327 |
| 319 -- ADJUST POSITIONS | 328 -- ADJUST POSITIONS |
| 751 -- Postal must be enabled | 760 -- Postal must be enabled |
| 752 | 761 |
| 753 -- Toggle module (let Postal handle this) | 762 -- Toggle module (let Postal handle this) |
| 754 Postal.ToggleModule(nil, name, Postal:GetModule(name), status); | 763 Postal.ToggleModule(nil, name, Postal:GetModule(name), status); |
| 755 end | 764 end |
| 765 | |
| 766 if self.TSMMailingEnabled then | |
| 767 local TSMMailing = LibStub("AceAddon-3.0"):GetAddon("TradeSkillMaster_Mailing"); | |
| 768 if TSMMailing and TSMMailing.massOpening then | |
| 769 TSMMailing.massOpening:Hide(); | |
| 770 end | |
| 771 end | |
| 756 end | 772 end |
| 757 | 773 |
| 758 -- Change Quick Auction's auto mail status based on our prefered settings | 774 -- Change Quick Auction's auto mail status based on our prefered settings |
| 759 function MailOpener:ToggleQAStatus() | 775 function MailOpener:ToggleQAStatus() |
| 760 self:Debug("defaultQAStatus:" .. self.db.profile.general.defaultQAStatus); | 776 self:Debug("defaultQAStatus:" .. self.db.profile.general.defaultQAStatus); |
