From cbfffc4d2cc86d21070f1aaf408efd57789c14da Mon Sep 17 00:00:00 2001 From: John Pasula Date: Thu, 27 Jan 2011 18:30:43 -0700 Subject: [PATCH] When attempting the scan, lets see if the frame is open first. --- Config.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Config.lua b/Config.lua index 84b446a..113149e 100644 --- a/Config.lua +++ b/Config.lua @@ -93,7 +93,9 @@ local function fullOptions() get = function() return addon.db.profile.includefiltered end, set = function() addon.db.profile.includefiltered = not addon.db.profile.includefiltered - addon:Scan(false, true) + if ARL.Frame and ARL.Frame:IsVisible() then + addon:Scan(false, true) + end end, }, includeexcluded = { @@ -104,7 +106,9 @@ local function fullOptions() get = function() return addon.db.profile.includeexcluded end, set = function() addon.db.profile.includeexcluded = not addon.db.profile.includeexcluded - addon:Scan(false, true) + if ARL.Frame and ARL.Frame:IsVisible() then + addon:Scan(false, true) + end end, }, exclusionlist = { -- 1.7.9.5