-
Notifications
You must be signed in to change notification settings - Fork 16.5k
feat: promisify dialog.showSaveDialog() #17054
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
Conversation
Needs rebase on #17050 once it's merged. |
3f7d228
to
c9dba0b
Compare
ef2d87c
to
088fae3
Compare
Review in #16973 (review) also applies here. |
f4ac326
to
8c9d837
Compare
e2855cd
to
063fd5e
Compare
fa9b40b
to
fe0fa2d
Compare
7960f88
to
c2c9e68
Compare
Release Notes Persisted
|
On Windows (I don't know in other platforms), the variable I'm not if report this issue in a new bug @miniak @codebytere , I don't have a repo to test the issue but I printed in my project in console: When I select a filename and click When I click on |
I'll handle that! |
Electron v. 6.0 introduced a sort-of breaking change: dialog functions now return promises by default. They used to take a callback function. The breaking change means there are now explicitly synchronous versions of dialog methods—in this case: showMessageBoxSync. Refs electron/electron#17054
Description of Change
Promisifies
dialog.showSaveDialog()
.cc @ckerr @MarshallOfSound @deepak1556
Checklist
npm test
passesRelease Notes
Notes: Split
dialog.showSaveDialog()
into a synchronous version and a version that returns a Promise