mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-26 12:21:03 +00:00
feat: display upload speed during seeding
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user