mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-24 03:29:28 +01:00
Changed to be better, hopefully. We really need to find out where this losing of channel values is happening.
This commit is contained in:
parent
d4a36dcb2f
commit
1ea5e55a8e
@ -100,12 +100,8 @@ def close(registry, filename, annotated=True, helpOnceOnly=False):
|
||||
if hasattr(value, 'value'):
|
||||
if value._showDefault:
|
||||
lines.append('#\n')
|
||||
try:
|
||||
original = value.value
|
||||
value.value = value._default
|
||||
lines.append('# Default value: %s\n' % value)
|
||||
finally:
|
||||
value.value = original
|
||||
x = value.__class__(value._default, value._help)
|
||||
lines.append('# Default value: %s\n' % x)
|
||||
lines.append('###\n')
|
||||
fd.writelines(lines)
|
||||
if hasattr(value, 'value'): # This lets us print help for non-valued.
|
||||
|
Loading…
Reference in New Issue
Block a user