feat: display upload speed during seeding

This commit is contained in:
Hachi-R 2024-11-09 12:45:48 -03:00
parent 8ec52bf193
commit 56687948bf
6 changed files with 54 additions and 7 deletions

View file

@ -76,8 +76,6 @@ 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) {
@ -102,6 +100,11 @@ export class DownloadManager {
{ status: "seeding" }
);
}
WindowManager.mainWindow?.webContents.send(
"on-seeding-status",
JSON.parse(JSON.stringify(seedStatus))
);
}
static async pauseSeeding(gameId: number) {