Respect "headless" on non-spec windows

This commit is contained in:
Ash Wilson 2019-04-18 16:18:49 -04:00
parent 0b0d3485ae
commit 2abbabdafe
No known key found for this signature in database
GPG Key ID: 81B1DDB704F69D2A

View File

@ -784,7 +784,9 @@ class AtomEnvironment {
const loadStatePromise = this.loadState().then(async state => {
this.windowDimensions = state && state.windowDimensions
await this.displayWindow()
if (!this.getLoadSettings().headless) {
await this.displayWindow()
}
this.commandInstaller.installAtomCommand(false, (error) => {
if (error) console.warn(error.message)
})