Skip to content

Commit

Permalink
fix(api/internal/pickers.js): fix missing 'suggestedName' use
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Dec 5, 2024
1 parent 127eba7 commit 89b3d77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/internal/pickers.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,16 @@ export async function showOpenFilePicker (options = null) {
export async function showSaveFilePicker (options = null) {
requireUserActivation('showSaveFilePicker')

const { startIn, id, types, excludeAcceptAllOption } = options || {}
const { startIn, id, types, excludeAcceptAllOption, suggestedName } = options || {}
const currentWindow = await application.getCurrentWindow()
const [filename] = await currentWindow.showSaveFilePicker(
const filename = await currentWindow.showSaveFilePicker(
normalizeShowFileSystemPickerOptions({
directories: false,
multiple: false,
files: true,

excludeAcceptAllOption,
suggestedName,
startIn,
types,
id
Expand Down

0 comments on commit 89b3d77

Please sign in to comment.