Focus new window when existing copy of Atom running fixes #4324

This commit is contained in:
Damien Guard
2016-08-12 17:45:02 -07:00
parent 274dee20dd
commit d47fd28c86

View File

@@ -512,6 +512,7 @@ class AtomApplication
resourcePath ?= @resourcePath
windowDimensions ?= @getDimensionsForNewWindow()
openedWindow = new AtomWindow(this, @fileRecoveryService, {initialPaths, locationsToOpen, windowInitializationScript, resourcePath, devMode, safeMode, windowDimensions, profileStartup, clearWindowState, env})
openedWindow.focus()
if pidToKillWhenClosed?
@pidsToOpenWindows[pidToKillWhenClosed] = openedWindow