Skip to content

Commit

Permalink
fix: cancel download that is not active
Browse files Browse the repository at this point in the history
  • Loading branch information
zamitto committed Dec 23, 2024
1 parent e53f480 commit 9f84538
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/services/download/download-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ export class DownloadManager {

WindowManager.mainWindow?.setProgressBar(-1);

this.downloadingGameId = null;
if (gameId === this.downloadingGameId) {
this.downloadingGameId = null;
}
}

static async resumeSeeding(game: Game) {
Expand Down

0 comments on commit 9f84538

Please sign in to comment.