- respect the user's mod-wide "enabled" setting when changing profiles (ticket #117)

- also cleaned up some logic that could cause errors when enabling the mod due to a profile switch when the player initially loaded with it disabled
This commit is contained in:
Parnic
2011-01-26 01:05:04 +00:00
parent 0112d98761
commit fd7d8db005
4 changed files with 22 additions and 7 deletions

View File

@ -347,6 +347,9 @@ This isn't |cff9999ffIceHUD|r - it's Blizzard's new Spell Alerts they added in 4
set = function(info, value)
IceHUD.IceCore:SetFontFamily(value)
end,
disabled = function()
return not IceHUD.IceCore:IsEnabled()
end,
values = AceGUIWidgetLSMlists.font,
order = 94.75,
},
@ -572,6 +575,9 @@ This isn't |cff9999ffIceHUD|r - it's Blizzard's new Spell Alerts they added in 4
func = function()
IceHUD:CreateCustomModuleAndNotify(lastCustomModule)
end,
disabled = function()
return not IceHUD.IceCore:IsEnabled()
end,
order = 94.6,
},
@ -585,6 +591,9 @@ This isn't |cff9999ffIceHUD|r - it's Blizzard's new Spell Alerts they added in 4
set = function(info, value)
IceHUD.IceCore:ConfigModeToggle(value)
end,
disabled = function()
return not IceHUD.IceCore:IsEnabled()
end,
order = 95
},