Values of variables are not updated correctly in the VariableStoreView
|Reported by:||jkarder||Owned by:||mkommend|
When a variable is added to the variable store, the view registers to Item.ToStringChanged in order to update the shown value accordingly. When the variable's value changes, the variable store fires OnItemsReplaced. The old variable (which the view registered to) is now stored in CollectionItemsChangedEventArgs.OldItems, the new variable is stored in CollectionItemsChangedEventArgs.Items. Therefore, the view must deregister from the old variable (since it's not in the variable store anymore) and register to the new one.
I've attached a sample script that can be used to show the error.
Change History (6)
Changed 2 years ago by jkarder
comment:3 Changed 2 years ago by jkarder
- Owner changed from jkarder to mkommend
- Status changed from accepted to reviewing