From 7b618b9b2e409c7bb00fc61b87b21e1715a349de Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Tue, 14 Dec 2021 19:21:56 +0200 Subject: [PATCH] Release fixes - returned back a small timeout before hiding loading screen - fixed an issue with fps unlocker option --- entry.js | 6 ++++-- src/ts/settings.ts | 6 ++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/entry.js b/entry.js index 1161f4e..ce3997a 100644 --- a/entry.js +++ b/entry.js @@ -126,8 +126,10 @@ app.whenReady().then(() => { }); ipcMain.handle('loaded', () => { - splashWindow.close(); - mainWindow.show(); + setTimeout(() => { + splashWindow.close(); + mainWindow.show(); + }, 1000); }); // This has to be here otherwise webContents is invalid diff --git a/src/ts/settings.ts b/src/ts/settings.ts index 2378df3..ef69296 100644 --- a/src/ts/settings.ts +++ b/src/ts/settings.ts @@ -331,12 +331,10 @@ $(() => { // Hide FPS Unlock until Prefix is installed if (!LauncherLib.isPrefixInstalled(constants.prefixDir.get())) - { $('#fps-unlocker').toggle(); - if (!$('#fps-unlocker').is(':visible')) - $('#fps-unlocker').toggle(); - } + else if (LauncherLib.isPrefixInstalled(constants.prefixDir.get()) && !$('#fps-unlocker').is(':visible')) + $('#fps-unlocker').toggle(); if (LauncherLib.getConfig('fpsunlock')) {