增加“关闭时最小化到托盘”的设置 (#166)

添加托盘设置,调整主进程代码架构
This commit is contained in:
Lasy
2020-04-03 20:00:43 +08:00
committed by GitHub
parent 15a76486ef
commit 1e481edc67
36 changed files with 340 additions and 202 deletions
+13
View File
@@ -0,0 +1,13 @@
module.exports = mainWindow => {
mainWindow.on('close', () => {
mainWindow.setProgressBar(-1)
})
mainWindow.on('closed', () => {
mainWindow = global.mainWindow = null
})
// mainWindow.on('restore', () => {
// mainWindow.webContents.send('restore')
// })
}