diff --git a/src/main/services/download-sources-checker.ts b/src/main/services/download-sources-checker.ts index 928e3d52..b3675829 100644 --- a/src/main/services/download-sources-checker.ts +++ b/src/main/services/download-sources-checker.ts @@ -101,18 +101,18 @@ export class DownloadSourcesChecker { logger.info("DownloadSourcesChecker.checkForChanges() called"); try { - // Get all installed games (excluding custom games) + // Get all installed games (excluding custom games and games without executable) const installedGames = await gamesSublevel.values().all(); const nonCustomGames = installedGames.filter( - (game: Game) => game.shop !== "custom" + (game: Game) => game.shop !== "custom" && game.executablePath ); logger.info( - `Found ${installedGames.length} total games, ${nonCustomGames.length} non-custom games` + `Found ${installedGames.length} total games, ${nonCustomGames.length} non-custom games with executable path` ); if (nonCustomGames.length === 0) { logger.info( - "No non-custom games found, skipping download sources check" + "No non-custom games with executable path found, skipping download sources check" ); return; } diff --git a/src/renderer/src/pages/game-details/modals/repacks-modal.tsx b/src/renderer/src/pages/game-details/modals/repacks-modal.tsx index 91013da0..a72e1323 100644 --- a/src/renderer/src/pages/game-details/modals/repacks-modal.tsx +++ b/src/renderer/src/pages/game-details/modals/repacks-modal.tsx @@ -200,6 +200,8 @@ export function RepacksModal({ if (viewedRepackIds.has(repack.id)) return false; + if (!game?.executablePath) return false; + if (!lastCheckTimestamp || !repack.createdAt) { return false; }