diff Modules/Config.lua @ 108:f5558317ced3

Added an experimental option to override the CheckInbox function to delay mailbox refresh while there is still mail remaining.
author Zerotorescue
date Thu, 30 Sep 2010 15:21:38 +0200
parents aabb70411186
children 91fe61693247
line wrap: on
line diff
--- a/Modules/Config.lua	Thu Sep 30 14:34:17 2010 +0200
+++ b/Modules/Config.lua	Thu Sep 30 15:21:38 2010 +0200
@@ -402,6 +402,15 @@
 						set = function(i, v) MailOpener.db.profile.general.defaultQAStatus = v; end,
 						hidden = (not MailOpener.QuickAuctionsEnabled),
 					},
+					overrideCheckInbox = {
+						order = 12,
+						type = "toggle",
+						name = "|cffff0000Experimental|r: Don't refresh the mailbox while there is still mail waiting to be opened",
+						desc = "|cffff0000Note:|r This functionality is still very experimental. Your mailbox might not update properly if you enable this.\n\nToggling this on will prevent the mailbox from automatically refreshing while there is still openable mail remaining.\n\nIf you close the mailbox while there is still mail remaining, your client will always try to refresh the inbox when you reopen it. This feature will wait with refreshing until there is no openable mail remaining, possibly saving a few seconds.",
+						width = "full",
+						get =  function() return MailOpener.db.profile.general.overrideCheckInbox; end,
+						set = function(i, v) MailOpener.db.profile.general.overrideCheckInbox = v; end,
+					},
 					continueOpeningStackableItems = {
 						order = 15,
 						type = "toggle",