revert to old behavior: default created from value if not present

This commit is contained in:
Nathan Jessurun 2021-04-03 17:07:02 -04:00
parent 07a99cb443
commit 4b002c06ba

View File

@ -201,6 +201,7 @@ class Parameter(QtCore.QObject):
if 'default' not in self.opts:
self.opts['default'] = None
self.setDefault(self.opts['value'])
## Connect all state changed signals to the general sigStateChanged
self.sigValueChanged.connect(self._emitValueChanged)