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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user