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 the open/save query functionality #541

Merged
merged 1 commit into from
Nov 3, 2020
Merged

Conversation

MasterOdin
Copy link
Member

Closes #540

This broke in the move to electron 8.2.5 where electron 6 changed the signature of this function to have a callback to instead use a promise interface. This modifies the show(Save|Open)Dialog functions to now utilize that promise, while still wrapping the result into the same form as was being used before where the resolve is given the singular filename (if there is one) while it rejects in cases where no file is selected (due to canceling) or we hit an error case.

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
@MasterOdin MasterOdin merged commit f4bdaba into master Nov 3, 2020
@MasterOdin MasterOdin deleted the bugfix/file_handler branch November 3, 2020 22:27
MasterOdin added a commit that referenced this pull request Nov 10, 2020
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
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.

cannot open or save queries
1 participant