Focus existing window after opening path

This commit is contained in:
Kevin Sawicki
2014-08-29 09:10:12 -07:00
parent 71470f88ad
commit 78f7ff6ee7

View File

@@ -345,7 +345,10 @@ class AtomApplication
if existingWindow?
openedWindow = existingWindow
openedWindow.openPath(pathToOpen, initialLine)
openedWindow.restore() if openedWindow.isMinimized()
if openedWindow.isMinimized()
openedWindow.restore()
else
openedWindow.focus()
else
if devMode
try