Skip to content

Commit df6a018

Browse files
committed
updateが準備できたら、再起動されるまで改めてUpdateの確認をしない
1 parent 409eaf5 commit df6a018

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ app.on('ready', function () {
5151
var template = require('./atom-lib/menu-template')
5252

5353
setInterval(function () {
54-
updater.checkForUpdates()
54+
if (update == null) updater.checkForUpdates()
5555
}, 1000 * 60 * 60 * 24)
5656

5757
ipc.on('check-update', function (event, msg) {
58-
updater.checkForUpdates()
58+
if (update == null) updater.checkForUpdates()
5959
})
6060

6161
ipc.on('update-app', function (event, msg) {

0 commit comments

Comments
 (0)