Use the renderer AutoUpdateManager in atom-environment’s update events

This commit is contained in:
Ben Ogle
2016-02-23 17:35:35 -08:00
parent c9293e7733
commit fa0f6f3525

View File

@@ -893,7 +893,7 @@ class AtomEnvironment extends Model
listenForUpdates: ->
# listen for updates available locally (that have been successfully downloaded)
@disposables.add(@applicationDelegate.onDidCompleteDownloadingUpdate(@updateAvailable.bind(this)))
@disposables.add(@autoUpdater.onDidCompleteDownload(@updateAvailable.bind(this)))
setBodyPlatformClass: ->
@document.body.classList.add("platform-#{process.platform}")