mirror of
https://github.com/atom/atom.git
synced 2026-02-14 00:25:08 -05:00
Rename pathsToNotifyWhenClosed -> pathsWithWaitSessions
This commit is contained in:
@@ -793,7 +793,7 @@ class AtomApplication extends EventEmitter {
|
||||
for (let i = 0; i < pathsToOpen.length; i++) {
|
||||
const location = this.parsePathToOpen(pathsToOpen[i], executedFrom, addToLastWindow)
|
||||
location.forceAddToWindow = addToLastWindow
|
||||
location.notifyWhenClosed = pidToKillWhenClosed != null
|
||||
location.hasWaitSession = pidToKillWhenClosed != null
|
||||
locationsToOpen.push(location)
|
||||
pathsToOpen[i] = location.pathToOpen
|
||||
}
|
||||
@@ -886,7 +886,7 @@ class AtomApplication extends EventEmitter {
|
||||
this.waitSessionsByWindow.delete(window)
|
||||
}
|
||||
|
||||
windowDidCloseInitialPath (window, initialPath) {
|
||||
windowDidClosePathWithWaitSession (window, initialPath) {
|
||||
const waitSessions = this.waitSessionsByWindow.get(window)
|
||||
if (!waitSessions) return
|
||||
for (let i = waitSessions.length - 1; i >= 0; i--) {
|
||||
|
||||
@@ -411,8 +411,8 @@ class AtomWindow extends EventEmitter {
|
||||
return this.atomApplication.saveState()
|
||||
}
|
||||
|
||||
didCloseInitialPath (path) {
|
||||
this.atomApplication.windowDidCloseInitialPath(this, path)
|
||||
didClosePathWithWaitSession (path) {
|
||||
this.atomApplication.windowDidClosePathWithWaitSession(this, path)
|
||||
}
|
||||
|
||||
copy () {
|
||||
|
||||
Reference in New Issue
Block a user