# HG changeset patch # User Zerotorescue # Date 1283899717 -7200 # Node ID f10c8a083d2a7579494d69b70ef5c781c230d4cb # Parent 1ba07a64bf142a7c74230d45f3c546bc973d88aa 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. diff -r 1ba07a64bf14 -r f10c8a083d2a Core.lua --- 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 diff -r 1ba07a64bf14 -r f10c8a083d2a MailOpener.toc --- 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 diff -r 1ba07a64bf14 -r f10c8a083d2a Modules/FailSafe.lua --- 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()