Mercurial > wow > mailopener
changeset 6:f10c8a083d2a
The ALPHA help request popup should pop when the addon is enabled for every 15th time. I really would like some data to.
The timer to start opening mail when you open the mailbox will now use the initial mail opening delay.
| author | Zerotorescue |
|---|---|
| date | Wed, 08 Sep 2010 00:48:37 +0200 |
| parents | 1ba07a64bf14 |
| children | 7249f9f1205a |
| files | Core.lua MailOpener.toc Modules/FailSafe.lua |
| diffstat | 3 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Core.lua Tue Sep 07 20:57:49 2010 +0200 +++ b/Core.lua Wed Sep 08 00:48:37 2010 +0200 @@ -237,7 +237,8 @@ self.db.global.uses = ( self.db.global.uses + 1 ); - if self.db.global.uses == 15 then + if (self.db.global.uses % 15) == 0 then + -- Automatically show once every 15 uses self:ShowBetaPopup(); end @@ -320,7 +321,8 @@ self:Recheck(); if self.db.profile.general.continueOpening then - self:ScheduleOpen(true); + -- Continue opening mail, but use the "initial mail opening interval" as time + self:ScheduleOpen(false); end end
--- a/MailOpener.toc Tue Sep 07 20:57:49 2010 +0200 +++ b/MailOpener.toc Wed Sep 08 00:48:37 2010 +0200 @@ -2,7 +2,7 @@ ## Title: Mail Opener ## Notes: This addon will automatically retrieve all your mail from the mailbox. ## Author: Zerotorescue -## Version: 1.0-ALPHA5 +## Version: 1.0-ALPHA6 ## SavedVariables: MailOpenerDB ## LoadManagers: AddonLoader ## X-LoadOn-Slash: /mo, /mailopen, /mailopener
--- a/Modules/FailSafe.lua Tue Sep 07 20:57:49 2010 +0200 +++ b/Modules/FailSafe.lua Wed Sep 08 00:48:37 2010 +0200 @@ -50,7 +50,7 @@ self:UnregisterMessage("MO_OPENING_MAIL"); self:UnregisterMessage("MO_OPENING_MAIL_FINISHED"); - self:CancelTimer(self.tmrTimeout); + self:CancelTimer(self.tmrTimeout, true); end function FailSafe:MO_OPENING_MAIL() @@ -62,7 +62,7 @@ function FailSafe:MO_MAIL_EMPTIED() -- Single mail has been opened - self:CancelTimer(self.tmrTimeout); + self:CancelTimer(self.tmrTimeout, true); end function FailSafe:Continue()
