focustense / StardewUI

UI/widget library for Stardew modding
MIT License
6 stars 1 forks source link

Better warnings for accidental one-shot bindings #34

Closed focustense closed 2 weeks ago

focustense commented 2 weeks ago

Back and forth on some support tonight and realized that although StardewUI does log warnings for "XYZ will not receive updates", it is only in a rather narrow case, when going through the normal AttributeBindingFactory and specifically when the entire type does not support INPC.

These warnings should also be logged:

The logger logic only depends on BindingContext and the IAttribute itself so I think this can be refactored for general use, maybe even pushed up to the ValueSourceFactory to ensure it's never missed.