mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- 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:
@ -599,7 +599,9 @@ IceHUD.slashMenu =
|
||||
{
|
||||
type = 'execute',
|
||||
func = function()
|
||||
if not (UnitAffectingCombat("player")) then
|
||||
if waterfall:IsOpen("IceHUD") then
|
||||
waterfall:Close("IceHUD")
|
||||
elseif not (UnitAffectingCombat("player")) then
|
||||
waterfall:Open("IceHUD")
|
||||
else
|
||||
DEFAULT_CHAT_FRAME:AddMessage("|cff8888ffIceHUD|r: Combat lockdown restriction." ..
|
||||
|
Reference in New Issue
Block a user