show Activated in ACE only for boolean options

This commit is contained in:
Yann Leboulanger 2009-09-07 21:07:12 +02:00
parent 7758a87e3c
commit 815255d317
1 changed files with 4 additions and 2 deletions

View File

@ -262,8 +262,10 @@ class AdvancedConfigurationWindow(object):
if name == 'password':
value = _('Hidden')
else:
value = self.right_true_dict.get(option[OPT_VAL],
option[OPT_VAL])
if type_ == self.types['boolean']:
value = self.right_true_dict[option[OPT_VAL]]
else:
value = option[OPT_VAL]
self.model.append(parent, [name, value, type_])
def visible_func(self, model, treeiter):