VixUiCheckboxLogic allow only one optional input value
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
This commit is contained in:
committed by
Alexander Piskun
parent
d6b143d778
commit
f7bac37739
+2
-2
@@ -159,8 +159,8 @@ class VixUiCheckboxLogic:
|
||||
@classmethod
|
||||
def do_it(cls, state, **kwargs) -> tuple:
|
||||
if state is False:
|
||||
return (kwargs["input_off_state"],)
|
||||
return (kwargs["input_on_state"],)
|
||||
return (kwargs.get("input_off_state", None),)
|
||||
return (kwargs.get("input_on_state", None),)
|
||||
|
||||
|
||||
class VixUiListLogic:
|
||||
|
||||
Reference in New Issue
Block a user