mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
Guarantee the window opening order
This commit is contained in:
parent
097906c23f
commit
9eb259ce20
@ -266,9 +266,12 @@ class AtomApplication extends EventEmitter {
|
|||||||
optionsForWindowsToOpen.push(options)
|
optionsForWindowsToOpen.push(options)
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.all(
|
// Preserve window opening order
|
||||||
optionsForWindowsToOpen.map(options => this.openWithOptions(options))
|
const windows = []
|
||||||
)
|
for (const options of optionsForWindowsToOpen) {
|
||||||
|
windows.push(await this.openWithOptions(options))
|
||||||
|
}
|
||||||
|
return windows
|
||||||
}
|
}
|
||||||
|
|
||||||
openWithOptions (options) {
|
openWithOptions (options) {
|
||||||
|
Loading…
Reference in New Issue
Block a user