mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
fix: cancel download that is not active
This commit is contained in:
parent
e53f4808d5
commit
9f84538b76
@ -222,8 +222,10 @@ export class DownloadManager {
|
|||||||
|
|
||||||
WindowManager.mainWindow?.setProgressBar(-1);
|
WindowManager.mainWindow?.setProgressBar(-1);
|
||||||
|
|
||||||
|
if (gameId === this.downloadingGameId) {
|
||||||
this.downloadingGameId = null;
|
this.downloadingGameId = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static async resumeSeeding(game: Game) {
|
static async resumeSeeding(game: Game) {
|
||||||
await PythonRPC.rpc.post("/action", {
|
await PythonRPC.rpc.post("/action", {
|
||||||
|
Loading…
Reference in New Issue
Block a user