mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 19:23:26 +00:00
Mac 触发升级时跳动Dock图标
This commit is contained in:
parent
74b1f65e0f
commit
8b394819c4
4
electron/electron.js
vendored
4
electron/electron.js
vendored
@ -452,6 +452,10 @@ ipcMain.on('updateCheckAndDownload', (event, args) => {
|
|||||||
ipcMain.on('updateQuitAndInstall', (event) => {
|
ipcMain.on('updateQuitAndInstall', (event) => {
|
||||||
event.returnValue = "ok"
|
event.returnValue = "ok"
|
||||||
willQuitApp = true
|
willQuitApp = true
|
||||||
|
if(process.platform == 'darwin'){
|
||||||
|
// Mac 触发升级时跳动Dock图标
|
||||||
|
app.dock.bounce('critical');
|
||||||
|
}
|
||||||
setTimeout(() => autoUpdater.quitAndInstall(true, true), 1)
|
setTimeout(() => autoUpdater.quitAndInstall(true, true), 1)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user