Vanessa 2023-01-05 22:30:44 +08:00
parent 15cce2c0a3
commit 7199b5b193
2 changed files with 12 additions and 9 deletions

View file

@ -662,7 +662,7 @@ app.whenReady().then(() => {
BrowserWindow.fromId(data.id).webContents.send('siyuan-export-pdf', data)
})
ipcMain.on('siyuan-export-close', (event, id) => {
BrowserWindow.fromId(id).webContents.send('siyuan-export-close', data)
BrowserWindow.fromId(id).webContents.send('siyuan-export-close', id)
})
ipcMain.on('siyuan-quit', (event, id) => {
const mainWindow = BrowserWindow.fromId(id)
@ -771,12 +771,14 @@ app.whenReady().then(() => {
mainWindow.show()
}
}
workspaces.find(item => {
if (item.id === data.id) {
resetTrayMenu(item.tray, data.languages, mainWindow)
return true
}
})
if ('win32' === process.platform || 'linux' === process.platform) {
workspaces.find(item => {
if (item.id === data.id) {
resetTrayMenu(item.tray, data.languages, mainWindow)
return true
}
})
}
})
})