From 575a158fede079d5b4e765bc3a84895d249f3196 Mon Sep 17 00:00:00 2001 From: Elliott Kember Date: Wed, 3 Jun 2020 00:03:04 -0700 Subject: [PATCH] Startup --- package.json | 2 +- src/electron.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6bc6d485..7101c9c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Soulmate", - "version": "1.0.8", + "version": "1.0.9", "main": "src/electron.js", "license": "MIT", "dependencies": { diff --git a/src/electron.js b/src/electron.js index e93e0d96..c26af626 100644 --- a/src/electron.js +++ b/src/electron.js @@ -23,6 +23,7 @@ function createWindow() { mainWindow = new BrowserWindow({ width: 1400, height: 800, + show: false, webPreferences: { enableRemoteModule: true, nodeIntegration: true, @@ -47,6 +48,10 @@ function createWindow() { } }); }); + + mainWindow.once("ready-to-show", () => { + mainWindow.show(); + }); } app.on("ready", createWindow);