Vanessa 2023-10-08 16:01:37 +08:00
parent 0ee6f5299e
commit 844c5ce688
3 changed files with 6 additions and 4 deletions

View file

@ -664,8 +664,10 @@ app.whenReady().then(() => {
ipcMain.on("siyuan-first-quit", () => {
app.exit();
});
ipcMain.handle("siyuan-dialog", (event, data) => {
return dialog.showOpenDialog(data);
});
ipcMain.on("siyuan-cmd", (event, cmd) => {
console.log(cmd)
switch (cmd) {
case "openDevTools":
event.sender.openDevTools({mode: "bottom"});