changeset 161:34e22d3cd73e

hasOpenedMailAlready is now set to true when shift is held while opening the mailbox so that CheckInbox may still work.
author Zerotorescue
date Mon, 19 Dec 2011 13:30:59 +0100
parents 1cf88d591741
children 8a525473f8e2
files Core.lua
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Core.lua	Wed Nov 30 23:28:32 2011 +0100
+++ b/Core.lua	Mon Dec 19 13:30:59 2011 +0100
@@ -440,10 +440,15 @@
 		self.cbOpenAll:SetChecked(false);
 	end
 	
+	hasOpenedMailAlready = nil;
+	mailboxEmptySoundPlayed = nil;
+	mailboxEmptySoundPlayedThisVisit = nil;
+	
 	if IsShiftKeyDown() then
 		self:Print(L["|cffff0000Disabling|r automatic opening of mail, shift key was down when opening the mailbox."]);
 		
 		AutoOpenMail = false;
+		hasOpenedMailAlready = true;
 		self.cbOpenAll:SetChecked(false);
 	end
 	
@@ -471,10 +476,6 @@
 		end
 	end
 	
-	hasOpenedMailAlready = nil;
-	mailboxEmptySoundPlayed = nil;
-	mailboxEmptySoundPlayedThisVisit = nil;
-	
 	self:Recheck();
 	
 	if self.db.profile.general.continueOpening then