Wait 5 seconds before downloading update.

And don't show 'check for updates' menu item on launch.
This commit is contained in:
probablycorey 2014-02-12 16:17:36 -08:00
parent 88b214067f
commit 5461de5856
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
{ label: 'About Atom', command: 'application:about' }
{ label: "VERSION", enabled: false }
{ label: "Restart and Install Update", command: 'application:install-update', visible: false}
{ label: "Check for Update", command: 'application:check-for-update'}
{ label: "Check for Update", command: 'application:check-for-update', visible: false}
{ type: 'separator' }
{ label: 'Preferences...', command: 'application:show-settings' }
{ label: 'Open Your Config', command: 'application:open-your-config' }

View File

@ -140,7 +140,7 @@ class AtomApplication
@applicationMenu.showCheckForUpdateItem(true)
# Check for update after Atom has fully started and the menus are created
setTimeout((-> autoUpdater.checkForUpdates()), 10000)
setTimeout((-> autoUpdater.checkForUpdates()), 5000)
checkForUpdate: ->
autoUpdater.once 'update-available', ->