This commit is contained in:
yj 2024-08-13 14:29:47 +08:00
parent 05b416330f
commit 3c34d3443d
1 changed files with 2 additions and 6 deletions

View File

@ -107,11 +107,6 @@ function createWindow() {
mainWindow.focus();
}
function createNotification(user) {
notification.show();
mainWindow.focus();
}
// 处理单实例
app.on('session-created', (session) => {
if (mainWindow) {
@ -198,7 +193,8 @@ app.on('ready', () => {
});
// 加入房间通知
ipcMain.handle('joinNotification', (event, user) => {
createNotification(user)
notification.show();
mainWindow.focus();
});
// 通知下载包
ipcMain.handle('updateDownload', (event, data) => {