Quantcast

In fullOptions(): When toggling "Display Exclusions", call addon:Scan() if the frame is visible.

James D. Callahan III [03-22-10 - 22:00]
In fullOptions(): When toggling "Display Exclusions", call addon:Scan() if the frame is visible.
Filename
Config.lua
diff --git a/Config.lua b/Config.lua
index c06c953..6d8b6ba 100644
--- a/Config.lua
+++ b/Config.lua
@@ -136,7 +136,13 @@ local function fullOptions()
 							name	= L["Display Exclusions"],
 							desc	= L["DISPLAY_EXCLUSION_DESC"],
 							get	= function() return addon.db.profile.ignoreexclusionlist end,
-							set	= function() addon.db.profile.ignoreexclusionlist = not addon.db.profile.ignoreexclusionlist end,
+							set	= function()
+									  addon.db.profile.ignoreexclusionlist = not addon.db.profile.ignoreexclusionlist
+
+									  if addon.Frame:IsVisible() then
+										  addon:Scan()
+									  end
+								  end,
 						},
 						spacer2 = {
 							order	= 39,