Rename hasProjectPath to hasProjectPaths

Likely a relic of the days when there was only one project.
This commit is contained in:
Ash Wilson
2019-04-18 16:17:07 -04:00
parent a0be3e735f
commit 495f493c44
2 changed files with 2 additions and 2 deletions

View File

@@ -1001,7 +1001,7 @@ class AtomApplication extends EventEmitter {
// Fall back to the last focused window that has no project roots.
if (!existingWindow) {
existingWindow = this.getLastFocusedWindow(win => !win.hasProjectPath())
existingWindow = this.getLastFocusedWindow(win => !win.hasProjectPaths())
}
// One last case: if *no* paths are directories, add to the last focused window.

View File

@@ -121,7 +121,7 @@ class AtomWindow extends EventEmitter {
if (hasPathToOpen && !this.isSpecWindow()) this.openLocations(locationsToOpen)
}
hasProjectPath () {
hasProjectPaths () {
return this.projectRoots.length > 0
}