diff --git a/src/main-process/atom-application.js b/src/main-process/atom-application.js index 168dfa682..d0cd442a6 100644 --- a/src/main-process/atom-application.js +++ b/src/main-process/atom-application.js @@ -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. diff --git a/src/main-process/atom-window.js b/src/main-process/atom-window.js index e2f2591f4..a8caec2e5 100644 --- a/src/main-process/atom-window.js +++ b/src/main-process/atom-window.js @@ -121,7 +121,7 @@ class AtomWindow extends EventEmitter { if (hasPathToOpen && !this.isSpecWindow()) this.openLocations(locationsToOpen) } - hasProjectPath () { + hasProjectPaths () { return this.projectRoots.length > 0 }