Skip to content

Commit 341daf1

Browse files
committed
feat: mac open file no resolve symlink
1 parent 6716d31 commit 341daf1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

electron/mapi/file/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {dialog, ipcMain, shell} from "electron";
1+
import {dialog, ipcMain} from "electron";
22
import fileIndex from "./index";
33

44
ipcMain.handle("file:openFile", async (
@@ -17,6 +17,8 @@ ipcMain.handle("file:openFile", async (
1717
if (!options.properties.includes("openFile")) {
1818
options.properties.push("openFile");
1919
}
20+
// @ts-ignore
21+
options.properties.push('noResolveAliases');
2022
const res = await dialog
2123
.showOpenDialog({
2224
...options,

0 commit comments

Comments
 (0)