From 7c69c1305f98f3bfcc1f0fec769203c6ab24c5b7 Mon Sep 17 00:00:00 2001 From: antelle Date: Sun, 3 Dec 2017 09:02:27 +0100 Subject: [PATCH] fixed color flash on startup --- desktop/app.js | 3 ++- release-notes.md | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/desktop/app.js b/desktop/app.js index bb75f600..517ede9c 100644 --- a/desktop/app.js +++ b/desktop/app.js @@ -136,6 +136,7 @@ function createMainWindow() { width: 1000, height: 700, minWidth: 700, minHeight: 400, icon: path.join(__dirname, 'icon.png'), titleBarStyle: appSettings ? appSettings.titlebarStyle : undefined, + backgroundColor: '#282C34', webPreferences: { backgroundThrottling: false } @@ -145,7 +146,7 @@ function createMainWindow() { if (showDevToolsOnStart) { mainWindow.openDevTools(); } - mainWindow.webContents.on('dom-ready', () => { + mainWindow.once('ready-to-show', () => { setTimeout(() => { mainWindow.show(); ready = true; diff --git a/release-notes.md b/release-notes.md index d87ebaf7..c481afcb 100644 --- a/release-notes.md +++ b/release-notes.md @@ -1,5 +1,8 @@ Release notes ------------- +##### v1.7.0 (WIP) +`-` fixed color flash on startup + ##### v1.6.1 (2017-12-03) `-` fixed white screen on startup `+` `--devtools` command line argument