Reduce delayedInit to 3 seconds
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user