Skip to content

Commit

Permalink
fix🐛: 无新版本时取消提醒弹窗
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit1e committed Dec 19, 2021
1 parent 6f1665b commit 0c5b3fd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/utils/checkUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ export default function checkUpdate (mainWindow) {

// 暂无新版本可更新
autoUpdater.on('update-not-available', info => {
dialog.showMessageBox({
type: 'info',
title: '应用更新',
message: '已经是最新版本',
buttons: ['关闭']
})
.then(buttonIndex => {
if (buttonIndex.response == 0) {
}
})
// dialog.showMessageBox({
// type: 'info',
// title: '应用更新',
// message: '已经是最新版本',
// buttons: ['关闭']
// })
// .then(buttonIndex => {
// if (buttonIndex.response == 0) {
// }
// })
mainWindow.webContents.send('updateNotAvailable', info)
})

Expand Down

0 comments on commit 0c5b3fd

Please sign in to comment.