mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: display upload speed during seeding
This commit is contained in:
parent
8ec52bf193
commit
56687948bf
6 changed files with 54 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue