mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Wait to initialize auto update manager until config is loaded
This commit is contained in:
@@ -149,7 +149,6 @@ class AtomApplication extends EventEmitter {
|
||||
this.config.set('core.titleBar', 'custom')
|
||||
}
|
||||
|
||||
process.nextTick(() => this.autoUpdateManager.initialize())
|
||||
this.applicationMenu = new ApplicationMenu(this.version, this.autoUpdateManager)
|
||||
this.atomProtocolHandler = new AtomProtocolHandler(this.resourcePath, this.safeMode)
|
||||
|
||||
@@ -172,6 +171,7 @@ class AtomApplication extends EventEmitter {
|
||||
if (!this.configFilePromise) {
|
||||
this.configFilePromise = this.configFile.watch()
|
||||
this.disposable.add(await this.configFilePromise)
|
||||
this.autoUpdateManager.initialize()
|
||||
this.config.onDidChange('core.titleBar', this.promptForRestart.bind(this))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user