Quantcast

Make sure the toggle works as intended

Adrian L Lange [06-25-10 - 17:35]
Make sure the toggle works as intended
Filename
Broker_Equipment.lua
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