mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-24 11:21:02 +00:00
chore: improving download queue
This commit is contained in:
@@ -19,6 +19,7 @@ const pauseGameDownload = async (
|
||||
await downloadsSublevel.put(gameKey, {
|
||||
...download,
|
||||
status: "paused",
|
||||
queued: false,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -31,6 +31,7 @@ const resumeGameDownload = async (
|
||||
...download,
|
||||
status: "active",
|
||||
timestamp: Date.now(),
|
||||
queued: true,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -72,6 +72,7 @@ const startGameDownload = async (
|
||||
fileSize: null,
|
||||
shouldSeed: false,
|
||||
timestamp: Date.now(),
|
||||
queued: true,
|
||||
};
|
||||
|
||||
await downloadsSublevel.put(gameKey, download);
|
||||
|
||||
Reference in New Issue
Block a user