Closed Lehonti closed 3 weeks ago
I see that this was fixed in a certain commit, but I'd still like to discuss the right architecture for it
I think static properties should be filtered out when building the list of widgets, since any controls need to be instance properties. But it should be possible to query them for a StaticList attribute. Not sure if there are any other cases I'm missing, though.
In one of the previous pull requests, I filtered out static properties so that the
SimpleEffectDialog
didn't crash whenCloudsEffect
was chosen.Now I've found that it still crashes because it can't find the member referenced in
StaticListAttribute
, so I added it as an instance property.Also, the creation of
MemberReflector
throwed an exception whenever the property in question didn't have a setter. This is a temporary workaround.Maybe static properties should be supported, at least in a limited fashion?