Mercurial > wow > mailopener
diff Core.lua @ 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 | 57f3b638af39 |
| children | 8a525473f8e2 |
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
