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