Don’t openPath on window startup for spec windows

It causes specs to fail because the window loses focus somehow when
this gets run.
This commit is contained in:
Nathan Sobo 2014-11-27 11:13:46 -07:00
parent 0b44cee8db
commit b2025ebad0

View File

@ -58,7 +58,7 @@ class AtomWindow
@browserWindow.loadUrl @getUrl(loadSettings)
@browserWindow.focusOnWebView() if @isSpec
@openPath(pathToOpen, initialLine, initialColumn)
@openPath(pathToOpen, initialLine, initialColumn) unless @isSpecWindow()
getUrl: (loadSettingsObj) ->
# Ignore the windowState when passing loadSettings via URL, since it could