Skip to content

Commit fe6a78d

Browse files
committed
feat: file open file multi return array
1 parent 21db02a commit fe6a78d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

electron/mapi/file/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ ipcMain.handle("file:openFile", async (
2626
if (!res || res.canceled) {
2727
return null;
2828
}
29-
if (res.filePaths.length > 1) {
30-
return res.filePaths;
29+
if (options.properties.includes("multiSelections")) {
30+
return res.filePaths || null;
3131
}
3232
return res.filePaths?.[0] || null;
3333
});

0 commit comments

Comments
 (0)