Use hasOpenFiles to flag a window that will receive openLocations()

This commit is contained in:
Ash Wilson
2019-04-19 15:50:03 -04:00
parent 190875873e
commit cc1ddf1011
2 changed files with 3 additions and 0 deletions

View File

@@ -77,6 +77,8 @@ class AtomWindow extends EventEmitter {
.map(location => location.pathToOpen)
this.projectRoots.sort()
this.loadSettings.hasOpenFiles = locationsToOpen
.some(location => location.pathToOpen && !location.isDirectory)
this.loadSettings.initialProjectRoots = this.projectRoots
// Only send to the first non-spec window created