From c3c8fbf98093951a4161725bea6b5ae452062d73 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sat, 13 Jan 2007 00:06:49 +0000 Subject: [PATCH] Removed a stray "frame" argument in PLAYER_REGEN_ENABLED() that was causing clicks to not be set properly. Thanks [Ammo]!!! --- Clique.lua | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Clique.lua b/Clique.lua index 3a0e9db..79c885e 100644 --- a/Clique.lua +++ b/Clique.lua @@ -152,7 +152,7 @@ function Clique:PLAYER_REGEN_ENABLED() self:ApplyClickSet(L.CLICKSET_DEFAULT) self:RemoveClickSet(L.CLICKSET_HARMFUL) self:RemoveClickSet(L.CLICKSET_HELPFUL) - self:ApplyClickSet(self.ooc, frame) + self:ApplyClickSet(self.ooc) end function Clique:PLAYER_REGEN_DISABLED() @@ -238,9 +238,6 @@ function Clique:RegisterFrame(frame) end function Clique:ApplyClickSet(name, frame) - if not self.clicksets then - Clique:Print(name, frame, debugstack()) - end local set = self.clicksets[name] or name if frame then @@ -282,10 +279,9 @@ function Clique:DONGLE_PROFILE_CHANGED(event, db, parent, svname, profileKey) self:PrintF(L.PROFILE_CHANGED, profileKey) for name,set in pairs(self.clicksets) do - for modifier,entry in pairs(set) do - self:DeleteAction(entry) - end + self:RemoveClickSet(set) end + self:RemoveClickSet(self.ooc) self.profile = self.db.profile self.clicksets = self.profile.clicksets @@ -296,10 +292,9 @@ function Clique:DONGLE_PROFILE_CHANGED(event, db, parent, svname, profileKey) self.textlistSelected = nil self:TextListScrollUpdate() self:ListScrollUpdate() + self:UpdateClicks() - for frame in pairs(self.ccframes) do - self:RegisterFrame(frame) - end + self:PLAYER_REGEN_ENABLED() end end @@ -315,6 +310,7 @@ end function Clique:SetAttribute(entry, frame) local name = frame:GetName() + if self.profile.blacklist and self.profile.blacklist[name] then return end -- 1.7.9.5