parent
1fb6b67fa8
commit
17c2d8a850
|
@ -103,6 +103,13 @@ app.once('ready', () => {
|
|||
app.__float__ = null
|
||||
app.exit()
|
||||
})
|
||||
|
||||
// mac专属事件,点击dock栏图标,可激活窗口
|
||||
app.on('activate', _ => {
|
||||
if (app.__main__) {
|
||||
app.__main__.restore()
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
ipcMain.on('app', (ev, conn) => {
|
||||
|
|
Loading…
Reference in New Issue