From bbf68973ede4d6f64b3d15db14119d68f018bedb Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 28 Mar 2010 23:12:39 -0400 Subject: [PATCH] Disabled the "Clear Exclusion List" button if there are no exclusions. --- Config.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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, -- 1.7.9.5