mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Focus new window when existing copy of Atom running fixes #4324
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user