chore: improving download queue

This commit is contained in:
Chubby Granny Chaser
2025-01-22 01:39:22 +00:00
parent f387560836
commit 549481f85a
9 changed files with 25 additions and 12 deletions

View File

@@ -125,12 +125,11 @@ export function Sidebar() {
});
}
if (game.download?.queued) return t("queued", { title: game.title });
if (game.download?.status === "paused")
return t("paused", { title: game.title });
if (game.download?.status === "active")
return t("queued", { title: game.title });
return game.title;
};

View File

@@ -150,7 +150,7 @@ export function DownloadGroup({
return (
<>
<p>{formatDownloadProgress(download.progress)}</p>
{/* <p>{t(game.downloadQueue && lastPacket ? "queued" : "paused")}</p> */}
<p>{t(download.queued ? "queued" : "paused")}</p>
</>
);
}

View File

@@ -68,7 +68,7 @@ export default function Downloads() {
return { ...prev, downloading: [...prev.downloading, next] };
/* Is either queued or paused */
if (next.download?.status === "paused")
if (next.download.queued || next.download?.status === "paused")
return { ...prev, queued: [...prev.queued, next] };
return { ...prev, complete: [...prev.complete, next] };