-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix label update for dict on item deletion. #95364
Fix label update for dict on item deletion. #95364
Conversation
From #95348:
It's still broken after the last step, just differently (new key shows as
|
0646438
to
6577a39
Compare
Thanks I didn't see the second part of the issue which was another place where an update was missing( ie adding an element). it wasn't happening on first addition because it was creating the editor property hence generating then. There was also another way to trigger the same one. Adding the 22nd item with the same value type as the 2nd would show the 2nd key instead of 22nd. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested a little, couldn't make it break / seems to work.
Looking at the code I'm not fully sure what/when updates though, e.g. why object->set_dict(dict)
(added for adding/removing key-value pair) is not needed when changing value type of an existing key-value pair. So yeah, TIWAGOS. 🙃
To give a bit more insight on what happens the function |
Thanks! |
Forgot to update on this making the function use call deferred would be hard as it is a function on a slot which is a struct so not possible would need to create a function that would update the labels and call deferred on this one. Anyway I remembered I had seen another update problem with modifying values on setter/getter so I'll recheck everything and post a full bug report on what parts don't work and go from there. |
Fixes #95348
it was effectively a missing update of the labels. So simply added the update that was missing on deletion.