mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-11 02:32:16 +00:00
fix: allow hide as plain dict
This commit is contained in:
@@ -454,13 +454,15 @@ class ConfigUpdater:
|
||||
dict:
|
||||
"""
|
||||
new = {}
|
||||
type_lock = {'lock', 'state'}
|
||||
type_stored = {'stored', 'dict'}
|
||||
|
||||
for keys, data in deep_iter(self.args, depth=3):
|
||||
value = deep_get(old, keys=keys, default=data['value'])
|
||||
typ = data['type']
|
||||
display = data.get('display')
|
||||
if (is_template or value is None or value == ''
|
||||
or typ in ['lock', 'state'] or (display == 'hide' and typ != 'stored')):
|
||||
if is_template or value is None or value == '' \
|
||||
or typ in type_lock or (display == 'hide' and typ not in type_stored):
|
||||
value = data['value']
|
||||
value = parse_value(value, data=data)
|
||||
deep_set(new, keys=keys, value=value)
|
||||
|
||||
Reference in New Issue
Block a user