This commit is contained in:
Vanessa 2023-10-08 16:17:33 +08:00
parent 844c5ce688
commit ec65118339
6 changed files with 56 additions and 52 deletions

View file

@ -665,7 +665,7 @@ app.whenReady().then(() => {
app.exit();
});
ipcMain.handle("siyuan-dialog", (event, data) => {
return dialog.showOpenDialog(data);
return dialog[data.type || "showOpenDialog"](data);
});
ipcMain.on("siyuan-cmd", (event, cmd) => {
switch (cmd) {