diff --git a/src/main/services/download/download-manager.ts b/src/main/services/download/download-manager.ts index d56544cc..241e4806 100644 --- a/src/main/services/download/download-manager.ts +++ b/src/main/services/download/download-manager.ts @@ -76,6 +76,8 @@ export class DownloadManager { const seedStatus = await PythonInstance.getSeedStatus(); + console.log(seedStatus); + if (seedStatus.length === 0) { for (const game of gamesToSeed) { if (game.uri && game.downloadPath) { diff --git a/src/renderer/src/pages/downloads/download-group.tsx b/src/renderer/src/pages/downloads/download-group.tsx index 7281079d..34d44006 100644 --- a/src/renderer/src/pages/downloads/download-group.tsx +++ b/src/renderer/src/pages/downloads/download-group.tsx @@ -15,6 +15,7 @@ import { useAppSelector, useDownload } from "@renderer/hooks"; import * as styles from "./download-group.css"; import { useTranslation } from "react-i18next"; import { SPACING_UNIT, vars } from "@renderer/theme.css"; +import { XCircleIcon } from "@primer/octicons-react"; export interface DownloadGroupProps { library: LibraryGame[]; @@ -44,6 +45,8 @@ export function DownloadGroup({ resumeDownload, cancelDownload, isGameDeleting, + pauseSeeding, + resumeSeeding, } = useDownload(); const getFinalDownloadSize = (game: LibraryGame) => { @@ -98,7 +101,13 @@ export function DownloadGroup({ } if (game.progress === 1) { - return

{t("completed")}

; + // return

{t("completed")}

; + + return game.status === "seeding" ? ( +

{t("seeding")}

+ ) : ( +

{t("completed")}

+ ); } if (game.status === "paused") { @@ -141,9 +150,15 @@ export function DownloadGroup({ {t("install")} - + {game.status === "seeding" ? ( + + ) : ( + + )} ); } @@ -207,7 +222,11 @@ export function DownloadGroup({