feat: implement osu! installation path input in Launch.svelte, and enhance loading animation cleanup

This commit is contained in:
2025-07-01 16:30:31 +02:00
parent afbb4df906
commit 7df448eea8
4 changed files with 64 additions and 56 deletions

View File

@@ -10,11 +10,13 @@
let ezppLogo: HTMLImageElement;
let spinnerCircle: SVGCircleElement;
let animateInterval: number | undefined;
//TODO: use this to check for updates upon launch
const doBPMAnimation = () => {
setInterval(async () => {
if (animateInterval) return;
animateInterval = window.setInterval(async () => {
animate(ezppLogo, {
scale: 1.1,
duration: 900,
@@ -83,7 +85,7 @@
prepare();
return () => {
utils.remove(ezppLogo);
window.clearInterval(animateInterval);
utils.remove(spinnerCircle);
};
});