Add 'ready-for-update-on-quit' event for auto-updater.
This commit is contained in:
parent
f435ed8667
commit
a1dc4b88be
6 changed files with 51 additions and 3 deletions
|
@ -6,5 +6,7 @@ AutoUpdater::__proto__ = EventEmitter.prototype
|
|||
autoUpdater = new AutoUpdater
|
||||
autoUpdater.on 'will-install-update-raw', (event, version) ->
|
||||
@emit 'will-install-update', event, version, => @continueUpdate()
|
||||
autoUpdater.on 'ready-for-update-on-quit-raw', (event, version) ->
|
||||
@emit 'ready-for-update-on-quit', event, version, => @quitAndInstall()
|
||||
|
||||
module.exports = autoUpdater
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue