mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
Use hasOpenFiles to flag a window that will receive openLocations()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user