fix: skins count display when no skins are in the skins directory

This commit is contained in:
2025-07-21 22:54:21 +02:00
parent fd4d911075
commit 2549b18e8c
5 changed files with 24 additions and 24 deletions

View File

@@ -135,11 +135,11 @@
currentLoadingInfo.set('Counting beatmapsets...');
const beatmapSetCount = await getBeatmapSetsCount($osuInstallationPath);
if (beatmapSetCount) beatmapSets.set(beatmapSetCount);
if (beatmapSetCount !== null) beatmapSets.set(beatmapSetCount);
currentLoadingInfo.set('Counting skins...');
const skinCount = await getSkinsCount($osuInstallationPath);
if (skinCount) skins.set(skinCount);
if (skinCount !== null) skins.set(skinCount);
const skin: string = await getSkin($osuInstallationPath);
currentSkin.set(skin);
}