From 35e58a89deb8b792028ec0255db6e547889c7518 Mon Sep 17 00:00:00 2001 From: Dallas Phillips Date: Thu, 25 Oct 2018 23:16:11 -0700 Subject: [PATCH] Including 'ready-to-show' function to open You are missing the 'ready-to-show' hook. Without it, the process starts but the windows will not open since it is never told to do so. --- src/main/electron/main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/electron/main.js b/src/main/electron/main.js index e38c629..b5dc1aa 100644 --- a/src/main/electron/main.js +++ b/src/main/electron/main.js @@ -60,6 +60,10 @@ function createWindow() { }); } }); + + mainWindow.once('ready-to-show', function () { + mainWindow.show() + }) }; const startUp = function () { @@ -92,4 +96,4 @@ app.on('activate', () => { if (win === null) { createWindow() } -}); \ No newline at end of file +});