fix: only validate psu path if its not empty

This commit is contained in:
HorizonCode committed 2026-05-28 21:53:19 +02:00
1 parent 474f1f0c33
commit cece28dd46
1 file changed
+3 -1
+3 -1
View File
@@ -133,10 +133,11 @@
if (!$firstStartup) {
currentLoadingInfo.set('Checking osu installation path...');
if ($osuInstallationPath && $osuInstallationPath.length > 0) {
const validFolder = await isValidOsuFolder($osuInstallationPath);
if (!validFolder) {
osuInstallationPath.set('');
await config.value<string>('osu_installation_path').set('');
osuInstallationPath.set('');
sileo.error({
title: 'Hmm...',
description: 'Your previously set osu! installation path seems to be invalid.',
@@ -165,6 +166,7 @@
currentSkin.set(skin);
}
}
}
currentLoadingInfo.set('Checking for EZPPLauncher updates...');
const launcherUpdate = await git.hasUpdate($launcherVersion);