From 6b600ccc382ee593638ffd6365e9a3bf406de479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20=E2=80=9CStorm1er=E2=80=9D=20Decaunes?= Date: Thu, 26 Mar 2020 08:24:47 +0100 Subject: [PATCH] fix: The app was unable to load the settings in some case. --- public/electron.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/electron.js b/public/electron.js index ac930fd..3aa4be9 100644 --- a/public/electron.js +++ b/public/electron.js @@ -14,8 +14,6 @@ const app_version_as_string = app.getVersion().replace(/\./g, "_") + (isDev ? "- let mainWindow; let tray; -upgrader(); - const currentSettings = () => { const localStorage = electronSettings.get(`${app_version_as_string}.appContext.settings`); if (localStorage) { @@ -25,6 +23,8 @@ const currentSettings = () => { }; const createWindow = () => { + upgrader(); + let appIcon = ""; let trayIcon = ""; if (require("os").platform() === "win32") { @@ -56,7 +56,7 @@ const createWindow = () => { showOnStart = false; } } - const splashTimeOut = 4000; + const splashTimeOut = 5000; if (showOnStart) { mainWindow = Splashscreen.initSplashScreen({ windowOpts: mainWindowOpt,