Quantcast

Disabled the "Clear Exclusion List" button if there are no exclusions.

James D. Callahan III [03-29-10 - 03:12]
Disabled the "Clear Exclusion List" button if there are no exclusions.
Filename
Config.lua
diff --git a/Config.lua b/Config.lua
index 76de1a0..8fce4dd 100644
--- a/Config.lua
+++ b/Config.lua
@@ -92,6 +92,12 @@ local function fullOptions()
 										  addon:Scan()
 									  end
 								  end,
+							disabled = function(info)
+									   for spell_id in pairs(addon.db.profile.exclusionlist) do
+										   return false
+									   end
+									   return true
+								   end,
 						},
 						resetallfilters = {
 							order	= 16,