From 5fc3247315b8a316924b6533233fcc004f04d38f Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 25 Jun 2010 19:35:59 +0200 Subject: [PATCH] Make sure the toggle works as intended --- Broker_Equipment.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua index a1ad78d..37d9e61 100644 --- a/Broker_Equipment.lua +++ b/Broker_Equipment.lua @@ -79,9 +79,11 @@ function broker:OnClick(button) ToggleDropDownMenu(1, nil, addon, self, 0, 0) else local paperdoll = PaperDollFrame:IsVisible() - if(not paperdoll or paperdoll and not GearManagerDialog:IsVisible()) then + if(not paperdoll) then ToggleCharacter('PaperDollFrame') GearManagerDialog:Show() + elseif(paperdoll and not GearManagerDialog:IsVisible()) then + GearManagerDialog:Show() end end end -- 1.7.9.5