From cbe48d28f17ef50aea9d498276872de964c52bf2 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 22 Jun 2010 06:00:25 -0400 Subject: [PATCH] Corrected logic for expansion filter toggle buttons. Fixes ticket # 1018. --- Frame.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Frame.lua b/Frame.lua index 5fa7e1e..0bc53ec 100644 --- a/Frame.lua +++ b/Frame.lua @@ -3742,9 +3742,14 @@ local function InitializeFrame() ------------------------------------------------------------------------------- local function ToggleExpansionMenu(panel) local toggle = "toggle_" .. panel + local button = rep_frame[toggle] - if not rep_frame[toggle]:GetChecked() then - rep_frame[toggle]:SetChecked(true) + button:SetChecked(not button:GetChecked()) + + if not button:GetChecked() then + addon:Debug("Not checked") + + button:SetChecked(true) rep_frame[panel]:Show() -- Hide all of the other expansion frames, and un-check them as well. @@ -3757,7 +3762,8 @@ local function InitializeFrame() end end else - rep_frame[toggle]:SetChecked(false) + rep_frame[panel]:Hide() + button:SetChecked(false) end end -- 1.7.9.5