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: dialog fails to show after modal close #22858

Merged
merged 1 commit into from
Mar 30, 2020
Merged

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Mar 27, 2020

Description of Change

Closes #22833.

The solution to #17558 unfortunately created a new issue, whereby native dialogs sometimes failed to open after modal close.

This PR fixes this by shifting the modal handling case logic to our delegate as Chromium does.

Tested with:

cc @zcbenz @nornagon @kenpowers-signal

Checklist

Release Notes

Notes: Fixed an issue where native macOS dialogs sometimes failed to show after modal close.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Mar 27, 2020
@zcbenz
Copy link
Member

zcbenz commented Mar 27, 2020

I don't see any macOS error noise though, probably related to macOS version or SDK version.

@codebytere codebytere requested a review from zcbenz March 27, 2020 17:56
@codebytere codebytere marked this pull request as ready for review March 27, 2020 17:56
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Mar 28, 2020
@codebytere codebytere merged commit b14608c into master Mar 30, 2020
@release-clerk
Copy link

release-clerk bot commented Mar 30, 2020

Release Notes Persisted

Fixed an issue where native macOS dialogs sometimes failed to show after modal close.

@trop
Copy link
Contributor

trop bot commented Mar 30, 2020

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

@trop
Copy link
Contributor

trop bot commented Mar 30, 2020

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

sentialx pushed a commit to sentialx/electron that referenced this pull request Apr 7, 2020
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.

Opening and closing a modal window prevents system modals from opening
2 participants