- close the config window if the user tries to open it when it's already open (http://www.wowace.com/addons/ice-hud/tickets/33-toggle-ice-hud-on-and-off/)

This commit is contained in:
Parnic
2010-01-18 20:35:15 +00:00
parent 7e82f6d88a
commit f1dc7d73d0

View File

@ -599,7 +599,9 @@ IceHUD.slashMenu =
{ {
type = 'execute', type = 'execute',
func = function() func = function()
if not (UnitAffectingCombat("player")) then if waterfall:IsOpen("IceHUD") then
waterfall:Close("IceHUD")
elseif not (UnitAffectingCombat("player")) then
waterfall:Open("IceHUD") waterfall:Open("IceHUD")
else else
DEFAULT_CHAT_FRAME:AddMessage("|cff8888ffIceHUD|r: Combat lockdown restriction." .. DEFAULT_CHAT_FRAME:AddMessage("|cff8888ffIceHUD|r: Combat lockdown restriction." ..