StorageLister is not using store but sets values directly

The StorageLister of the CustomiseComponent is setting the storage values directly instead of using the provided store function. This results in changes of storage values not resulting in a cook of depending components. Using store() instead results in changes forcing a recook.

try:
		parent.Dialog.ConfigComp.storage[key] = eval(info['cellText'])
	except:
		parent.Dialog.ConfigComp.storage[key] = info['cellText']

should become:

try:
		parent.Dialog.ConfigComp.store(key, eval(info['cellText']) )
	except:
		parent.Dialog.ConfigComp.store(key, info['cellText'] )

Also, not sure how much I like the completly unchecked tryExcept block but not sure how to handle that.

Nice catch. Fixed in next release.

1 Like