mirror of
https://github.com/atom/atom.git
synced 2026-02-07 21:25:05 -05:00
Add a few more things before stepping aside to work on another issue
…maybe rebase this away…
This commit is contained in:
committed by
Ben Ogle
parent
3716aaf00b
commit
1eaf30fae9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user