Closed barretpj closed 7 months ago
For OfxParamTypeStrChoice if there is no default value I currently use the first option as the default (instead of ""), just like you would do with OfxParamTypeChoice (where the default would be 0). If we want that behavior then maybe it should be explained in the documentation with OfxParamPropDefault.
Thanks -- I made a PR to fix these, including doc updates: #147 . Please review.
Ping -- does my fix in #147 work for both of you?
I believe this is fixed now in #147.
I'm using this plugin to test my implementation of choice params, and noted a couple of issues in this code:
the grouping is different from all the other plugins in Support/Plugins, which means it appears in a different place from those other plugins. The others are all in "OFX Example (Support)" (via
kPluginGrouping
) but this one is in "OFX" (viasetPluginGrouping()
).it doesn't define a default value for any of its params. That leads (at least in my host) to the StrChoice param showing an empty value on creation, since the default value is NULL.