1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 01:38:21 +08:00

Fix: [ALAS] Checkbox cannot be dynamically updated

This commit is contained in:
LmeSzinc
2023-12-07 22:35:36 +08:00
parent 208a6e9b61
commit a37438bd02
2 changed files with 14 additions and 1 deletions

View File

@@ -427,6 +427,18 @@ def parse_pin_value(val, valuetype: str = None):
return v
def to_pin_value(val):
"""
Convert bool to checkbox
"""
if val is True:
return [True]
elif val is False:
return []
else:
return val
def login(password):
if get_localstorage("password") == str(password):
return True