mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Rename hasProjectPath to hasProjectPaths
Likely a relic of the days when there was only one project.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -121,7 +121,7 @@ class AtomWindow extends EventEmitter {
|
||||
if (hasPathToOpen && !this.isSpecWindow()) this.openLocations(locationsToOpen)
|
||||
}
|
||||
|
||||
hasProjectPath () {
|
||||
hasProjectPaths () {
|
||||
return this.projectRoots.length > 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user