fix: only validate psu path if its not empty
This commit is contained in:
1 file changed
+3
-1
@@ -133,10 +133,11 @@
|
|||||||
|
|
||||||
if (!$firstStartup) {
|
if (!$firstStartup) {
|
||||||
currentLoadingInfo.set('Checking osu installation path...');
|
currentLoadingInfo.set('Checking osu installation path...');
|
||||||
|
if ($osuInstallationPath && $osuInstallationPath.length > 0) {
|
||||||
const validFolder = await isValidOsuFolder($osuInstallationPath);
|
const validFolder = await isValidOsuFolder($osuInstallationPath);
|
||||||
if (!validFolder) {
|
if (!validFolder) {
|
||||||
osuInstallationPath.set('');
|
|
||||||
await config.value<string>('osu_installation_path').set('');
|
await config.value<string>('osu_installation_path').set('');
|
||||||
|
osuInstallationPath.set('');
|
||||||
sileo.error({
|
sileo.error({
|
||||||
title: 'Hmm...',
|
title: 'Hmm...',
|
||||||
description: 'Your previously set osu! installation path seems to be invalid.',
|
description: 'Your previously set osu! installation path seems to be invalid.',
|
||||||
@@ -165,6 +166,7 @@
|
|||||||
currentSkin.set(skin);
|
currentSkin.set(skin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
currentLoadingInfo.set('Checking for EZPPLauncher updates...');
|
currentLoadingInfo.set('Checking for EZPPLauncher updates...');
|
||||||
const launcherUpdate = await git.hasUpdate($launcherVersion);
|
const launcherUpdate = await git.hasUpdate($launcherVersion);
|
||||||
|
|||||||
Reference in new issue
Block a user