mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
Set {newWindow: true} for options recovered from application.json
This commit is contained in:
@@ -1170,7 +1170,8 @@ class AtomApplication extends EventEmitter {
|
||||
return state.windows.map(each => ({
|
||||
foldersToOpen: each.projectRoots,
|
||||
devMode: this.devMode,
|
||||
safeMode: this.safeMode
|
||||
safeMode: this.safeMode,
|
||||
newWindow: true
|
||||
}))
|
||||
} else if (state.version === undefined) {
|
||||
// Atom <= 1.36.0
|
||||
@@ -1188,7 +1189,8 @@ class AtomApplication extends EventEmitter {
|
||||
return {
|
||||
foldersToOpen: classifiedPaths.filter(({isDir}) => isDir).map(({initialPath}) => initialPath),
|
||||
devMode: this.devMode,
|
||||
safeMode: this.safeMode
|
||||
safeMode: this.safeMode,
|
||||
newWindow: true
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user