mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Put 'update-available' in @downloadUpdate instead
So that it only shows up when there's an actual update
This commit is contained in:
@@ -14,8 +14,6 @@ class AutoUpdater
|
||||
require('auto-updater').quitAndInstall()
|
||||
|
||||
downloadUpdate: (callback) ->
|
||||
@emit 'update-available'
|
||||
|
||||
SquirrelUpdate.spawn ['--download', @updateUrl], (error, stdout) ->
|
||||
return callback(error) if error?
|
||||
|
||||
@@ -53,6 +51,8 @@ class AutoUpdater
|
||||
@emit 'update-not-available'
|
||||
return
|
||||
|
||||
@emit 'update-available'
|
||||
|
||||
@installUpdate (error) =>
|
||||
if error?
|
||||
@emit 'update-not-available'
|
||||
|
||||
Reference in New Issue
Block a user