mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
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:
@@ -311,6 +311,7 @@ class AtomApplication
|
||||
if existingWindow
|
||||
openedWindow = existingWindow
|
||||
openedWindow.openPath(pathToOpen, initialLine)
|
||||
openedWindow.restore()
|
||||
else
|
||||
if devMode
|
||||
try
|
||||
|
||||
@@ -151,6 +151,8 @@ class AtomWindow
|
||||
|
||||
maximize: -> @browserWindow.maximize()
|
||||
|
||||
restore: -> @browserWindow.restore()
|
||||
|
||||
handlesAtomCommands: ->
|
||||
not @isSpecWindow() and @isWebViewFocused()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user