Skip to content

Commit

Permalink
fix: change install validation to remove download game only
Browse files Browse the repository at this point in the history
  • Loading branch information
JackEnx authored and JackEnx committed Apr 21, 2024
1 parent a947b93 commit 7f127fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/events/library/open-game-installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const openGameInstaller = async (
);

if (!fs.existsSync(gamePath)) {
await gameRepository.delete({ id: gameId });
await gameRepository.update({ id: gameId }, { status: null });
return true;
}

Expand Down

0 comments on commit 7f127fd

Please sign in to comment.