This commit is contained in:
parent
05b416330f
commit
3c34d3443d
8
main.js
8
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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue