Open
Description
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'
}]
})