diff --git a/packages/filesystem/src/electron-main/electron-api-main.ts b/packages/filesystem/src/electron-main/electron-api-main.ts index 0a9d6576a09b2..20540bce6ad0e 100644 --- a/packages/filesystem/src/electron-main/electron-api-main.ts +++ b/packages/filesystem/src/electron-main/electron-api-main.ts @@ -49,7 +49,7 @@ export class ElectronApi implements ElectronMainApplicationContribution { properties: properties }; - if (options.modal) { + if (options.modal !== false) { const win = BrowserWindow.fromWebContents(event.sender); if (win) { return (await dialog.showOpenDialog(win, dialogOpts)).filePaths; @@ -65,7 +65,7 @@ export class ElectronApi implements ElectronMainApplicationContribution { filters: options.filters, title: options.title }; - if (options.modal) { + if (options.modal !== false) { const win = BrowserWindow.fromWebContents(event.sender); if (win) { return (await dialog.showSaveDialog(win, dialogOpts)).filePath;