registry: Directly set the value instead of calling Value._setValue

This commit is contained in:
BlankEclair 2024-10-23 19:32:26 +11:00
parent 94310d5c3d
commit 8fa8ee117f
No known key found for this signature in database
GPG Key ID: 6F0877E28B7FE933

View File

@ -153,7 +153,7 @@ def close(registry, filename, private=True):
# Value.setValue to set some global state (#1349)
x = value.__class__(value._default, value._help,
setDefault=False)
x._setValue(value._default, inherited=False)
x.value = value._default
except Exception as e:
exception('Exception instantiating default for %s:' %
value._name)