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

Implement dead window cleanup without niling out #5442

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

Jacalz
Copy link
Member

@Jacalz Jacalz commented Jan 20, 2025

Description:

Reduces the chance of a potential crash for someone not expecting a nil window and is honestly a bit cleaner code wise.

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

@coveralls
Copy link

Coverage Status

coverage: 59.049% (+0.03%) from 59.024%
when pulling a3409a1 on Jacalz:better-inline-window-close
into 2127941 on fyne-io:develop.

Copy link
Member

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Thanks. Those nils were cropping up all over the place.

@Jacalz Jacalz merged commit e0a0024 into fyne-io:develop Jan 20, 2025
12 checks passed
@Jacalz Jacalz deleted the better-inline-window-close branch January 20, 2025 20:57
@Jacalz
Copy link
Member Author

Jacalz commented Jan 20, 2025

Yeah, I noticed that as well which I do find a bit strange actually. The idea was to clean up directly after the loop and since this is single threaded now there are no races there but I suppose I missed some functions being called in between 😅

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