FIX: Splash screen timeout
This commit is contained in:
@@ -14,7 +14,7 @@ if (ess) {
|
|||||||
const isDevelopment = process.env.NODE_ENV !== 'production'
|
const isDevelopment = process.env.NODE_ENV !== 'production'
|
||||||
|
|
||||||
// Minimum time to show the splash screen, in milliseconds
|
// Minimum time to show the splash screen, in milliseconds
|
||||||
const splashTime = isDevelopment ? 40000 : 40000
|
const splashTime = isDevelopment ? 4000 : 4000
|
||||||
const loadingWindowWidth = 800 / 2
|
const loadingWindowWidth = 800 / 2
|
||||||
const loadingWindowHeight = 1100 / 2
|
const loadingWindowHeight = 1100 / 2
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ const createLoadingWindow = (mainWindow) => {
|
|||||||
show: false,
|
show: false,
|
||||||
width: loadingWindowWidth,
|
width: loadingWindowWidth,
|
||||||
height: loadingWindowHeight,
|
height: loadingWindowHeight,
|
||||||
resizable: true,
|
resizable: false,
|
||||||
fullscreenable: false,
|
fullscreenable: false,
|
||||||
maximizable: false,
|
maximizable: false,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
@@ -89,7 +89,6 @@ const createLoadingWindow = (mainWindow) => {
|
|||||||
let loadingTimeout
|
let loadingTimeout
|
||||||
loadingWindow.once('show', () => {
|
loadingWindow.once('show', () => {
|
||||||
mainWindow.webContents.once('did-finish-load', () => {
|
mainWindow.webContents.once('did-finish-load', () => {
|
||||||
return
|
|
||||||
loadingTimeout = setTimeout(() => {
|
loadingTimeout = setTimeout(() => {
|
||||||
mainWindow.show()
|
mainWindow.show()
|
||||||
mainWindow.focus()
|
mainWindow.focus()
|
||||||
|
|||||||
Reference in New Issue
Block a user