mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Wait 5 seconds before downloading update.
And don't show 'check for updates' menu item on launch.
This commit is contained in:
parent
88b214067f
commit
5461de5856
@ -5,7 +5,7 @@
|
|||||||
{ label: 'About Atom', command: 'application:about' }
|
{ label: 'About Atom', command: 'application:about' }
|
||||||
{ label: "VERSION", enabled: false }
|
{ label: "VERSION", enabled: false }
|
||||||
{ label: "Restart and Install Update", command: 'application:install-update', visible: 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' }
|
{ type: 'separator' }
|
||||||
{ label: 'Preferences...', command: 'application:show-settings' }
|
{ label: 'Preferences...', command: 'application:show-settings' }
|
||||||
{ label: 'Open Your Config', command: 'application:open-your-config' }
|
{ label: 'Open Your Config', command: 'application:open-your-config' }
|
||||||
|
@ -140,7 +140,7 @@ class AtomApplication
|
|||||||
@applicationMenu.showCheckForUpdateItem(true)
|
@applicationMenu.showCheckForUpdateItem(true)
|
||||||
|
|
||||||
# Check for update after Atom has fully started and the menus are created
|
# Check for update after Atom has fully started and the menus are created
|
||||||
setTimeout((-> autoUpdater.checkForUpdates()), 10000)
|
setTimeout((-> autoUpdater.checkForUpdates()), 5000)
|
||||||
|
|
||||||
checkForUpdate: ->
|
checkForUpdate: ->
|
||||||
autoUpdater.once 'update-available', ->
|
autoUpdater.once 'update-available', ->
|
||||||
|
Loading…
Reference in New Issue
Block a user