From 3d09b6ae013cb32d2f9540a631cf313284b8458e Mon Sep 17 00:00:00 2001 From: Jason Blais Date: Wed, 18 Jan 2017 09:28:22 -0500 Subject: [PATCH 1/2] Update default window dimensions to 1000x700 --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 2a573cc4..b7b6b8ad 100644 --- a/src/main.js +++ b/src/main.js @@ -441,8 +441,8 @@ app.on('ready', () => { try { windowOptions = getValidWindowPosition(JSON.parse(fs.readFileSync(boundsInfoPath, 'utf-8'))); } catch (e) { - // follow Electron's defaults - windowOptions = {}; + // Follow Electron's defaults, except for window dimensions which targets 1024x768 screen resolution. + window_options = {width: 1000, height: 700}; } if (process.platform === 'linux') { windowOptions.icon = path.resolve(assetsDir, 'appicon.png'); From c6d554535d630f77621fce398d8b60aa3e18d379 Mon Sep 17 00:00:00 2001 From: Jason Blais Date: Wed, 18 Jan 2017 10:50:12 -0500 Subject: [PATCH 2/2] Update main.js --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index b7b6b8ad..ec485bb3 100644 --- a/src/main.js +++ b/src/main.js @@ -442,7 +442,7 @@ app.on('ready', () => { windowOptions = getValidWindowPosition(JSON.parse(fs.readFileSync(boundsInfoPath, 'utf-8'))); } catch (e) { // Follow Electron's defaults, except for window dimensions which targets 1024x768 screen resolution. - window_options = {width: 1000, height: 700}; + windowOptions = {width: 1000, height: 700}; } if (process.platform === 'linux') { windowOptions.icon = path.resolve(assetsDir, 'appicon.png');