Skip to content
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

Update Band when the model is changed #10216

Merged
merged 1 commit into from
Jun 22, 2020
Merged

Conversation

p-himik
Copy link
Contributor

@p-himik p-himik commented Jun 22, 2020

this.connect(this.model.change, update)
this.connect(this.model.source.streaming, update)
this.connect(this.model.source.patching, update)
this.connect(this.model.source.change, update)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pattern is repeated in many places, and it just asks for this.connect to be able to receive an array of signals. This would also allow reuse of new_slot within connect. @mattpap What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be useful in general. However, in this case, this code most likely will be removed soon, as I will be bringing all vectorizable (or source-driven) renderers under one implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds awesome!

@mattpap mattpap merged commit 5e690cb into master Jun 22, 2020
@mattpap mattpap deleted the p-himik/10215_update_band branch June 22, 2020 08:55
@bryevdv bryevdv added this to the 2.2 milestone Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Band is not updated when the model is changed
3 participants