Skip to content

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

Closed

Description

@bpasero

I am using Electron 0.27.3 and pass a filters property to the save dialog. The filters show up nicely in the dialog and the dropdown lets me select from file types and the list filters by the selection. However, I would also expect that the extension of the filter is added to the file name.

I am following the example from https://github.com/atom/electron/blob/master/docs/api/dialog.md, but the extension is not added to my file name when I select from the filtered list. Other native applications like Sublime automatically add the extension when I pick it in the save dialog.

Activity

  1. bpasero commented on Sep 27, 2015

    @bpasero
    ContributorAuthor

    image

    Interestingly once I proceed with the saving from the dialog, the file path returned actually gets the selected extension added, but it does not show up in the "File name: " input field of the dialog...

  2. added a commit that references this issue on Sep 27, 2015
    6dcc752
  3. bpasero commented on Sep 28, 2015

    @bpasero
    ContributorAuthor

    Great, thanks guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions