fixed color flash on startup

This commit is contained in:
antelle 2017-12-03 09:02:27 +01:00
parent c59b14026c
commit 7c69c1305f
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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