Mercurial > wow > mailopener
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 160:1cf88d591741 | 161:34e22d3cd73e |
|---|---|
| 438 | 438 |
| 439 MailOpener:Disable(); | 439 MailOpener:Disable(); |
| 440 self.cbOpenAll:SetChecked(false); | 440 self.cbOpenAll:SetChecked(false); |
| 441 end | 441 end |
| 442 | 442 |
| 443 hasOpenedMailAlready = nil; | |
| 444 mailboxEmptySoundPlayed = nil; | |
| 445 mailboxEmptySoundPlayedThisVisit = nil; | |
| 446 | |
| 443 if IsShiftKeyDown() then | 447 if IsShiftKeyDown() then |
| 444 self:Print(L["|cffff0000Disabling|r automatic opening of mail, shift key was down when opening the mailbox."]); | 448 self:Print(L["|cffff0000Disabling|r automatic opening of mail, shift key was down when opening the mailbox."]); |
| 445 | 449 |
| 446 AutoOpenMail = false; | 450 AutoOpenMail = false; |
| 451 hasOpenedMailAlready = true; | |
| 447 self.cbOpenAll:SetChecked(false); | 452 self.cbOpenAll:SetChecked(false); |
| 448 end | 453 end |
| 449 | 454 |
| 450 self:ToggleQAStatus(); | 455 self:ToggleQAStatus(); |
| 451 | 456 |
| 468 QAMail.totalMail:Hide(); | 473 QAMail.totalMail:Hide(); |
| 469 end | 474 end |
| 470 end | 475 end |
| 471 end | 476 end |
| 472 end | 477 end |
| 473 | |
| 474 hasOpenedMailAlready = nil; | |
| 475 mailboxEmptySoundPlayed = nil; | |
| 476 mailboxEmptySoundPlayedThisVisit = nil; | |
| 477 | 478 |
| 478 self:Recheck(); | 479 self:Recheck(); |
| 479 | 480 |
| 480 if self.db.profile.general.continueOpening then | 481 if self.db.profile.general.continueOpening then |
| 481 -- Continue opening mail, but use the "initial mail opening interval" as time | 482 -- Continue opening mail, but use the "initial mail opening interval" as time |
