Skip to content

Set default extension for Windows file dialogs - #2917

Merged
zcbenz merged 4 commits into
electron:masterfrom
etiktin:win_dialog_set_default_ex
Sep 28, 2015
Merged

zcbenz merged 4 commits into
electron:masterfrom
etiktin:win_dialog_set_default_ex

Conversation

@etiktin

@etiktin etiktin commented Sep 27, 2015

Copy link
Copy Markdown
Contributor

On Windows when you open the save dialog and switch the filter, the extension is supposed to change accordingly. It didn't happen with the existing code, because the default extension wasn't set.

Relevant reference can be found here (second paragraph).

This resolves #2915.

etiktin and others added 4 commits September 16, 2015 18:03
On Windows when you open the save dialog and switch the filter, the
extension is supposed to change accordingly. It didn't happen with the
existing code, since the existing code didn't set the default extension
(should be set to the first filter).

This resolves electron#2915.
@etiktin etiktin changed the title Set default extension for file dialogs in Windows Set default extension for Windows file dialogs Sep 27, 2015
@zcbenz

zcbenz commented Sep 28, 2015

Copy link
Copy Markdown
Contributor

Thanks!

zcbenz added a commit that referenced this pull request Sep 28, 2015
Set default extension for Windows file dialogs
@zcbenz
zcbenz merged commit c18fa63 into electron:master Sep 28, 2015
@etiktin
etiktin deleted the win_dialog_set_default_ex branch September 28, 2015 17:28
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.

[windows] using filter in Dialog.showSaveDialog() not working as expected

2 participants