From 204faee9f74f3217ea15328d0dde68225112de06 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 23 Nov 2010 09:04:42 +0000 Subject: [PATCH] Add the blacklist code back in --- Clique.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Clique.lua b/Clique.lua index 19bd319..fe50399 100755 --- a/Clique.lua +++ b/Clique.lua @@ -886,6 +886,22 @@ function addon:BLACKLIST_CHANGED() return end + -- Clear attributes on all frames + self:ClearAttributes() + + -- Actually update the blacklist accordingly + local bits = { + "blacklist = table.wipe(blacklist)", + } + + for frame, value in pairs(self.settings.blacklist) do + if not not value then + bits[#bits + 1] = string.format("blacklist[%q] = true", frame) + end + end + + addon.header:Execute(table.concat(bits, ";\n")) + -- Update the registered clicks, to catch any unblacklisted frames self:UpdateRegisteredClicks() -- Update the options panel -- 1.7.9.5