mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 11:22:16 +00:00
fix: checkbox cannot be updated dynamically
This commit is contained in:
+2
-2
@@ -71,6 +71,7 @@ from module.webui.utils import (
|
||||
parse_pin_value,
|
||||
raise_exception,
|
||||
re_fullmatch,
|
||||
to_pin_value,
|
||||
)
|
||||
from module.webui.widgets import (
|
||||
BinarySwitchButton,
|
||||
@@ -496,11 +497,10 @@ class AlasGUI(Frame):
|
||||
valid.append(k)
|
||||
|
||||
for set_key, set_value in config_updater.save_callback(k, v):
|
||||
logger.info([set_key, set_value, pin["_".join(set_key.split("."))]])
|
||||
modified[set_key] = set_value
|
||||
deep_set(config, set_key, set_value)
|
||||
valid.append(set_key)
|
||||
pin["_".join(set_key.split("."))] = set_value
|
||||
pin["_".join(set_key.split("."))] = to_pin_value(set_value)
|
||||
else:
|
||||
modified.pop(k)
|
||||
invalid.append(k)
|
||||
|
||||
Reference in New Issue
Block a user