Delay calling tray.init() and handlers.init()
This commit is contained in:
@@ -57,17 +57,12 @@ function init () {
|
|||||||
})
|
})
|
||||||
|
|
||||||
app.on('ready', function () {
|
app.on('ready', function () {
|
||||||
menu.init()
|
|
||||||
windows.createMainWindow()
|
windows.createMainWindow()
|
||||||
windows.createWebTorrentHiddenWindow()
|
windows.createWebTorrentHiddenWindow()
|
||||||
|
menu.init()
|
||||||
shortcuts.init()
|
shortcuts.init()
|
||||||
tray.init()
|
|
||||||
handlers.install()
|
|
||||||
|
|
||||||
/*
|
// To keep app startup fast, some code is delayed.
|
||||||
* 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)
|
setTimeout(delayedInit, config.DELAYED_INIT)
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -93,6 +88,8 @@ function init () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function delayedInit () {
|
function delayedInit () {
|
||||||
|
tray.init()
|
||||||
|
handlers.install()
|
||||||
updater.init()
|
updater.init()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user