Skip to content

FormsPlot: dispose the Plot when the handle is destroyed#3593

Merged
swharden merged 5 commits intoScottPlot:mainfrom
bwedding:Issue3589
Apr 5, 2024
Merged

FormsPlot: dispose the Plot when the handle is destroyed#3593
swharden merged 5 commits intoScottPlot:mainfrom
bwedding:Issue3589

Conversation

@bwedding
Copy link
Contributor

@bwedding bwedding commented Apr 4, 2024

#3589

The issue was, when the dialog was closed, Plot was not being disposed when the HandleDestroyed fired, which it did when the user X'd out of the dialog. It only disposed the SKElement.

This was tested on the user-supplied test project.

image

…ndow opens second time. V4 works as expected.

The issue was, when the dialog was closed, Plot was not being disposed when the HandleDestroyed fired. It just disposed the SKElement.
@swharden

This comment was marked as outdated.

@swharden

This comment was marked as outdated.

@swharden swharden linked an issue Apr 5, 2024 that may be closed by this pull request
@swharden swharden changed the title Fix for Issue 3589. FormsPlot V5 does not redraw itself FormsPlot: dispose the Plot when the handle is destroyed Apr 5, 2024
@swharden swharden merged commit c7346d1 into ScottPlot:main Apr 5, 2024
@bwedding
Copy link
Contributor Author

bwedding commented Apr 5, 2024

Sorry about the SonarQube thing. I didn't see that it was added.

@swharden
Copy link
Member

swharden commented Apr 5, 2024

Sorry about the SonarQube thing. I didn't see that it was added.

No worries! I'm relieved to learn the fix to the issue didn't actually require 1.4 million lines of code 😜 This was a great fix, thanks again! 🚀

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.

FormsPlot: does not redraw after Dialog window opens second time

2 participants