Mercurial > wow > mailopener
diff Core.lua @ 163:86d9e008b0ad
The mailbox will still be automatically refreshed while automatic mail opening is disabled.
| author | Zerotorescue |
|---|---|
| date | Mon, 19 Dec 2011 14:05:57 +0100 |
| parents | 8a525473f8e2 |
| children |
line wrap: on
line diff
--- a/Core.lua Mon Dec 19 13:54:48 2011 +0100 +++ b/Core.lua Mon Dec 19 14:05:57 2011 +0100 @@ -685,7 +685,8 @@ --local BeanCounterActive = not InboxCloseButton:IsVisible(); --if not BeanCounterActive and AutoOpenMail and not MailAddonBusy then - if AutoOpenMail and not MailAddonBusy then + --if AutoOpenMail and not MailAddonBusy then + if not MailAddonBusy then -- Query the server CheckInbox(); end @@ -842,7 +843,7 @@ -- This should speed things up a tiny bit, but might become buggy if coded wrong -- We actually override the function in the onenable function NewCheckInbox(...) - if not MailOpener.db.profile.general.overrideCheckInbox or not MailOpener.db.profile.general.continueOpening or not lastAmount or lastAmount == 0 then + if not MailOpener.db.profile.general.overrideCheckInbox or not MailOpener.db.profile.general.continueOpening or not AutoOpenMail or not lastAmount or lastAmount == 0 then -- If the override Check Inbox option is off -- or continuous opening is off -- or there's currently no mail visible
