Prevent window from displaying when just running tests

This commit is contained in:
Matt Colyer
2013-10-02 14:05:07 -07:00
parent 171728367e
commit 16fd6debea

View File

@@ -84,6 +84,7 @@ class Atom
browserWindow.center()
restoreDimensions: (defaultDimensions={width: 800, height: 600})->
return if @getLoadSettings().exitWhenDone
dimensions = @getWindowState().getObject('dimensions')
dimensions = defaultDimensions unless dimensions?.width and dimensions?.height
@setDimensions(dimensions)