Do not wait until config watcher is ready in order to launch the Atom

window
This commit is contained in:
Rafael Oleza
2019-05-01 11:02:43 +02:00
parent 2a7ddf0d22
commit 350d5ef3a7

View File

@@ -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())
}