From 48ea9e6198c04736896f5f6ff625b94cf2db7e5d Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Tue, 12 Jan 2016 15:11:46 -0800 Subject: [PATCH] fix(fullscreen): Restore fullscreen if app was closed in fullscreen Fixes #671 --- src/nylas-env.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nylas-env.coffee b/src/nylas-env.coffee index 68b86da8f..527e58ce6 100644 --- a/src/nylas-env.coffee +++ b/src/nylas-env.coffee @@ -575,7 +575,8 @@ class NylasEnvConstructor extends Model browserWindow = @getCurrentWindow() {x, y, width, height} = browserWindow.getBounds() maximized = browserWindow.isMaximized() - {x, y, width, height, maximized} + fullScreen = browserWindow.isFullScreen() + {x, y, width, height, maximized, fullScreen} # Set the dimensions of the window. # @@ -627,6 +628,7 @@ class NylasEnvConstructor extends Model dimensions = @getDefaultWindowDimensions() @setWindowDimensions(dimensions) @maximize() if dimensions.maximized and process.platform isnt 'darwin' + @setFullScreen(true) if dimensions.fullScreen storeWindowDimensions: -> dimensions = @getWindowDimensions()