Only restore window when it is minimized

Restoring a maximized windows on Windows unmaximizes it.

Closes #3381
This commit is contained in:
Kevin Sawicki
2014-08-26 09:55:22 -07:00
parent 0bae432109
commit 32353a31eb
2 changed files with 3 additions and 1 deletions

View File

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

View File

@@ -173,6 +173,8 @@ class AtomWindow
isFocused: -> @browserWindow.isFocused()
isMinimized: -> @browserWindow.isMinimized()
isWebViewFocused: -> @browserWindow.isWebViewFocused()
isSpecWindow: -> @isSpec