- unified the behavior for configuration when a module is disabled. now the sub-configs (marker/text/icon settings) remain clickable but every element inside is disabled when the module is disabled. previously some sub-configs were not clickable at all and others were

This commit is contained in:
Parnic
2010-10-25 04:10:29 +00:00
parent e003fab854
commit 673fb524ba
3 changed files with 54 additions and 12 deletions

View File

@ -186,9 +186,6 @@ end
type = 'group',
name = "|c"..self.configColor..L["Icon Settings"].."|r",
desc = L["Settings related to icons"],
disabled = function()
return not self.moduleSettings.enabled
end,
args = {
iconConfigMode = {
type = "toggle",
@ -204,6 +201,9 @@ end
self:CheckPartyRole()
self:Redraw()
end,
disabled = function()
return not self.moduleSettings.enabled
end,
order = 5
},
@ -218,6 +218,9 @@ end
self.moduleSettings.lockIconAlpha = v
self:Redraw()
end,
disabled = function()
return not self.moduleSettings.enabled
end,
order = 6
},