From 07fb2b02745d68c106901af366f8c0959f8dd531 Mon Sep 17 00:00:00 2001 From: Robert Kossessa Date: Thu, 8 Feb 2024 15:41:56 +0100 Subject: [PATCH] FIX: Splash screen timeout --- src/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index d24a6cf..1a43572 100644 --- a/src/main.js +++ b/src/main.js @@ -14,7 +14,7 @@ if (ess) { const isDevelopment = process.env.NODE_ENV !== 'production' // Minimum time to show the splash screen, in milliseconds -const splashTime = isDevelopment ? 40000 : 40000 +const splashTime = isDevelopment ? 4000 : 4000 const loadingWindowWidth = 800 / 2 const loadingWindowHeight = 1100 / 2 @@ -74,7 +74,7 @@ const createLoadingWindow = (mainWindow) => { show: false, width: loadingWindowWidth, height: loadingWindowHeight, - resizable: true, + resizable: false, fullscreenable: false, maximizable: false, transparent: true, @@ -89,7 +89,6 @@ const createLoadingWindow = (mainWindow) => { let loadingTimeout loadingWindow.once('show', () => { mainWindow.webContents.once('did-finish-load', () => { - return loadingTimeout = setTimeout(() => { mainWindow.show() mainWindow.focus()