From 495f493c443b8db31ef1daf52c49031fccbe60c0 Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Thu, 18 Apr 2019 16:17:07 -0400 Subject: [PATCH] Rename hasProjectPath to hasProjectPaths Likely a relic of the days when there was only one project. --- src/main-process/atom-application.js | 2 +- src/main-process/atom-window.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }