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

ChartPlugin scene listener is not removed #676

Merged
merged 4 commits into from
Sep 30, 2024
Merged

Conversation

amischler
Copy link
Contributor

The ChartPlugin register a listener on some of its nodes sceneProperty but those listeners are never being removed, even when the plugin is removed from a chart (i.e. chart property of the Plugin is set to null).

In some cases, a ChartPlugin that is not in any chart might still receive Scene events, which should not be the case.

See ChartPluginTest in this PR for more details.

Copy link

sonarcloud bot commented Sep 23, 2024

Copy link
Member

@wirew0rm wirew0rm left a comment

Choose a reason for hiding this comment

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

Thanks for finding, fixing and contributing back 👍 This looks like a very comprehensible fix, well documented and with unit tests, thanks a lot and sorry for taking so long to look at it.

@wirew0rm wirew0rm merged commit 05980c4 into fair-acc:main Sep 30, 2024
5 of 6 checks passed
@amischler
Copy link
Contributor Author

Thank you for merging and BTW thank you for this great library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants