Reduce delayedInit to 3 seconds

This commit is contained in:
Feross Aboukhadijeh
2016-05-11 22:02:59 +02:00
parent f35eb73d50
commit ea1c66b3fc
3 changed files with 13 additions and 3 deletions

View File

@@ -54,7 +54,6 @@ function init () {
app.on('will-finish-launching', function () {
crashReporter.init()
autoUpdater.init()
})
app.on('ready', function () {
@@ -64,6 +63,12 @@ function init () {
shortcuts.init()
tray.init()
handlers.install()
/*
* We always check for updates on app startup. To keep app startup fast, we delay this
* first check so it happens when there is less going on.
*/
setTimeout(delayedInit, config.DELAYED_INIT)
})
app.on('ipcReady', function () {
@@ -87,6 +92,10 @@ function init () {
})
}
function delayedInit () {
autoUpdater.init()
}
function onOpen (e, torrentId) {
e.preventDefault()