Await configuration loading on Windows

This commit is contained in:
Tasos Papalyras
2020-03-21 16:04:25 +02:00
parent 0b34be7963
commit 92db49314f

View File

@@ -320,11 +320,7 @@ module.exports = class AtomApplication extends EventEmitter {
);
});
// TodoElectronIssue: In electron v2 awaiting the watcher causes some delay
// in Windows machines, which affects directly the startup time.
if (process.platform !== 'win32') {
await this.configFilePromise;
}
await this.configFilePromise;
}
let optionsForWindowsToOpen = [];