Add a few more things before stepping aside to work on another issue

…maybe rebase this away…
This commit is contained in:
Daniel Hengeveld
2016-02-02 22:34:11 -08:00
committed by Ben Ogle
parent 3716aaf00b
commit 1eaf30fae9
4 changed files with 54 additions and 10 deletions

View File

@@ -175,7 +175,7 @@ class ApplicationDelegate
onUpdateAvailable: (callback) ->
outerCallback = (event, message, detail) ->
if message is 'update-available'
if message is 'did-begin-downloading-update'
callback(detail)
ipcRenderer.on('message', outerCallback)
@@ -193,7 +193,7 @@ class ApplicationDelegate
onDidCompleteDownloadingUpdate: (callback) ->
outerCallback = (message, detail) ->
if message is 'update-downloaded'
if message is 'update-available'
callback(detail)
ipc.on('message', outerCallback)