# HG changeset patch # User Zerotorescue # Date 1324297859 -3600 # Node ID 34e22d3cd73e3542cb485f3cefd1f56217d566c8 # Parent 1cf88d59174106e1bc7ff01f5c1414bff073f3db hasOpenedMailAlready is now set to true when shift is held while opening the mailbox so that CheckInbox may still work. diff -r 1cf88d591741 -r 34e22d3cd73e Core.lua --- 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