Release fixes

- returned back a small timeout before hiding loading screen
- fixed an issue with fps unlocker option
This commit is contained in:
Observer KRypt0n_ 2021-12-14 19:21:56 +02:00
parent 6e7cad2607
commit 7b618b9b2e
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
2 changed files with 6 additions and 6 deletions

View file

@ -126,8 +126,10 @@ app.whenReady().then(() => {
}); });
ipcMain.handle('loaded', () => { ipcMain.handle('loaded', () => {
setTimeout(() => {
splashWindow.close(); splashWindow.close();
mainWindow.show(); mainWindow.show();
}, 1000);
}); });
// This has to be here otherwise webContents is invalid // This has to be here otherwise webContents is invalid

View file

@ -331,12 +331,10 @@ $(() => {
// Hide FPS Unlock until Prefix is installed // Hide FPS Unlock until Prefix is installed
if (!LauncherLib.isPrefixInstalled(constants.prefixDir.get())) if (!LauncherLib.isPrefixInstalled(constants.prefixDir.get()))
{
$('#fps-unlocker').toggle(); $('#fps-unlocker').toggle();
if (!$('#fps-unlocker').is(':visible')) else if (LauncherLib.isPrefixInstalled(constants.prefixDir.get()) && !$('#fps-unlocker').is(':visible'))
$('#fps-unlocker').toggle(); $('#fps-unlocker').toggle();
}
if (LauncherLib.getConfig('fpsunlock')) if (LauncherLib.getConfig('fpsunlock'))
{ {