Restore window when opening path

Previously the window would stay minimized if it was triggered
from the command line and was already open.

Closes #1889
This commit is contained in:
Kevin Sawicki
2014-04-22 16:58:53 -07:00
parent 08748b5bad
commit c1260d68bb
2 changed files with 3 additions and 0 deletions

View File

@@ -311,6 +311,7 @@ class AtomApplication
if existingWindow
openedWindow = existingWindow
openedWindow.openPath(pathToOpen, initialLine)
openedWindow.restore()
else
if devMode
try

View File

@@ -151,6 +151,8 @@ class AtomWindow
maximize: -> @browserWindow.maximize()
restore: -> @browserWindow.restore()
handlesAtomCommands: ->
not @isSpecWindow() and @isWebViewFocused()