diff Core.lua @ 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
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