chore: update version to 3.2.7 and refactor skin handling functions

This commit is contained in:
HorizonCode committed 2026-08-09 23:24:50 +02:00
1 parent 5a06700748
commit 01628e8514
10 files changed
+45 -120

No files matched your search

+5 -6
View File
@@ -14,7 +14,6 @@
osuBuild,
osuStream,
presenceLoading,
skins,
skinsCount,
} from '$lib/global';
import {
@@ -22,7 +21,7 @@
getBeatmapSetsCount,
getReleaseStream,
getSkin,
getSkins,
getSkinsCount,
getVersion,
isValidOsuFolder,
} from '$lib/osuUtil';
@@ -103,10 +102,10 @@
beatmapSets.set(beatmapSetCount);
}
const skins_list = await getSkins(osuInstallPath);
if (skins_list) {
skins.set(skins_list);
skinsCount.set(skins_list.length);
const skins_count = await getSkinsCount(osuInstallPath);
if (skins_count) {
/* skins.set(skins_count); */
skinsCount.set(skins_count);
} else {
skinsCount.set(0);
}