VixUiCheckboxLogic allow only one optional input value

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
This commit is contained in:
Alexander Piskun
2024-06-25 11:11:56 +03:00
committed by Alexander Piskun
parent d6b143d778
commit f7bac37739
+2 -2
View File
@@ -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: