Options: match Toggle's get_option_name signature to Choice's
This commit is contained in:
parent
adfd68f83c
commit
66627d8a66
|
@ -115,7 +115,8 @@ class Toggle(Option):
|
|||
def __int__(self):
|
||||
return int(self.value)
|
||||
|
||||
def get_option_name(self, value):
|
||||
@classmethod
|
||||
def get_option_name(cls, value):
|
||||
return ["No", "Yes"][int(value)]
|
||||
|
||||
class DefaultOnToggle(Toggle):
|
||||
|
|
Loading…
Reference in New Issue