Have the all classes checkbox work as a proper filter, instead of just magically checking all groups
James Whitehead II [02-05-08 - 15:08]
Have the all classes checkbox work as a proper filter, instead of just magically checking all groups
diff --git a/PerfectRaid_Frames.lua b/PerfectRaid_Frames.lua
index ec25a2b..c5a527f 100644
--- a/PerfectRaid_Frames.lua
+++ b/PerfectRaid_Frames.lua
@@ -262,16 +262,8 @@ function Frames:CreateEditFrame(parent)
makeCheck(L["Group 6"], "6")
makeCheck(L["Group 7"], "7")
makeCheck(L["Group 8"], "8")
- makeCheck(L["All Classes"], "IGNORE_ALLCLASS")
+ makeCheck(L["All Classes"], "WARRIOR,PRIEST,DRUID,SHAMAN,PALADIN,MAGE,ROGUE,WARLOCK,HUNTER")
- PRFrameFilter_IGNORE_ALLCLASS:SetScript("OnClick", function(checkbutton)
- local checked = checkbutton:GetChecked()
-
- for i=1,9 do
- self.filters[i]:SetChecked(checked)
- end
- end)
-
for idx,button in ipairs(self.filters) do
if idx == 1 then
button:SetPoint("TOPLEFT", title, "BOTTOMLEFT", 0, -15)
@@ -576,7 +568,7 @@ function Frames:SaveEntry()
local filterTbl = {}
for k,v in pairs(self.filters) do
- if v:GetChecked() and not v.value:match("^IGNORE")then
+ if v:GetChecked() then
table.insert(filterTbl, v.value)
end
end