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

fix: emit window-all-closed after closing the window #28867

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

nornagon
Copy link
Member

@nornagon nornagon commented Apr 27, 2021

Description of Change

Fixes #28774. This moves the trigger for emitting the window-all-closed event until after the BrowserWindow has been marked destroyed.

Checklist

Release Notes

Notes: Fixed the window-all-closed event being emitted while the last BrowserWindow was still in the process of being closed.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Apr 27, 2021
@MarshallOfSound MarshallOfSound added the semver/patch backwards-compatible bug fixes label Apr 28, 2021
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Apr 28, 2021
@nornagon
Copy link
Member Author

@codebytere 10-x-y is security fixes only, which this is not, so I've removed the target for that backport.

@nornagon nornagon merged commit c200840 into master Apr 28, 2021
@release-clerk
Copy link

release-clerk bot commented Apr 28, 2021

Release Notes Persisted

Fixed the window-all-closed event being emitted while the last BrowserWindow was still in the process of being closed.

@trop
Copy link
Contributor

trop bot commented Apr 28, 2021

I have automatically backported this PR to "11-x-y", please check out #28912

@trop
Copy link
Contributor

trop bot commented Apr 28, 2021

I have automatically backported this PR to "12-x-y", please check out #28913

@trop trop bot removed the target/12-x-y label Apr 28, 2021
@trop
Copy link
Contributor

trop bot commented Apr 28, 2021

I have automatically backported this PR to "13-x-y", please check out #28914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: BrowserWindow.getAllWindows returns closed windows in window-all-closed event
3 participants