Options: match Toggle's get_option_name signature to Choice's

This commit is contained in:
Fabian Dill 2021-08-31 22:52:14 +02:00
parent adfd68f83c
commit 66627d8a66
1 changed files with 2 additions and 1 deletions

View File

@ -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):