Skip to content

[v2 - Linux] Filter change in Save Dialog does not update file name extension #1106

Open
@jasonterando

Description

@jasonterando

Description: When executing a save dialog with multiple filters, when the filter is changed, the value in the Name text box is not updated. This forces the user to type in the correct file extension manually when saving. Given that VSCode (Electron) has the same issue, I'm guessing the problem is with the underlying dialog control being used from the OS/Desktop Environment, etc.

Expected Behavior: Ideally, if the user changes the filter, the value in Name should be updated.

Alternative?: If possible, update save method to return the selected filter along with the file name (sort of like what is done with OpenDialogReturn).

            const fileName = await dialog.save({
                title: 'Save Workbook',
                defaultPath: workbookFullName ?? settings.workbookDirectory,
                filters: [{
                    name: 'Workbooks
                    extensions: 'wkbk'
                }, {
                    name: 'Comma-delimited Export',
                    extensions: 'csv'
                }]
            })

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions