mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Do not wait until config watcher is ready in order to launch the Atom
window
This commit is contained in:
@@ -247,7 +247,7 @@ class AtomApplication extends EventEmitter {
|
||||
async launch (options) {
|
||||
if (!this.configFilePromise) {
|
||||
this.configFilePromise = this.configFile.watch()
|
||||
this.disposable.add(await this.configFilePromise)
|
||||
this.configFilePromise.then(disposable => this.disposable.add(disposable))
|
||||
this.config.onDidChange('core.titleBar', () => this.promptForRestart())
|
||||
this.config.onDidChange('core.colorProfile', () => this.promptForRestart())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user