mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 10:03:28 +07:00
fix: The app was unable to load the settings in some case.
This commit is contained in:
parent
f78e3c52b8
commit
6b600ccc38
@ -14,8 +14,6 @@ const app_version_as_string = app.getVersion().replace(/\./g, "_") + (isDev ? "-
|
|||||||
let mainWindow;
|
let mainWindow;
|
||||||
let tray;
|
let tray;
|
||||||
|
|
||||||
upgrader();
|
|
||||||
|
|
||||||
const currentSettings = () => {
|
const currentSettings = () => {
|
||||||
const localStorage = electronSettings.get(`${app_version_as_string}.appContext.settings`);
|
const localStorage = electronSettings.get(`${app_version_as_string}.appContext.settings`);
|
||||||
if (localStorage) {
|
if (localStorage) {
|
||||||
@ -25,6 +23,8 @@ const currentSettings = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const createWindow = () => {
|
const createWindow = () => {
|
||||||
|
upgrader();
|
||||||
|
|
||||||
let appIcon = "";
|
let appIcon = "";
|
||||||
let trayIcon = "";
|
let trayIcon = "";
|
||||||
if (require("os").platform() === "win32") {
|
if (require("os").platform() === "win32") {
|
||||||
@ -56,7 +56,7 @@ const createWindow = () => {
|
|||||||
showOnStart = false;
|
showOnStart = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const splashTimeOut = 4000;
|
const splashTimeOut = 5000;
|
||||||
if (showOnStart) {
|
if (showOnStart) {
|
||||||
mainWindow = Splashscreen.initSplashScreen({
|
mainWindow = Splashscreen.initSplashScreen({
|
||||||
windowOpts: mainWindowOpt,
|
windowOpts: mainWindowOpt,
|
||||||
|
Loading…
Reference in New Issue
Block a user