From 3c34d3443db21acbd5a1bf77c30af6017d371dd9 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 13 Aug 2024 14:29:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index 86e70c0..c055de3 100644 --- a/main.js +++ b/main.js @@ -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) => {