Skip to content

Commit

Permalink
InstallationStatusUpdater: Fix setting incorrect installation status #…
Browse files Browse the repository at this point in the history
  • Loading branch information
darklinkpower committed Dec 31, 2023
1 parent 4e20bd5 commit abbb33e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -452,14 +452,14 @@ private void DetectInstallationStatus(bool showResultsDialog)
}

var detectedAsInstalled = IsGameInstalled(game);
if (game.IsInstalled && detectedAsInstalled)
if (game.IsInstalled && !detectedAsInstalled)
{
game.IsInstalled = false;
PlayniteApi.Database.Games.Update(game);
markedUninstalled++;
updateResults.AddSetAsUninstalledGame(game);
}
else if (game.IsInstalled && detectedAsInstalled)
else if (!game.IsInstalled && detectedAsInstalled)
{
game.IsInstalled = true;
PlayniteApi.Database.Games.Update(game);
Expand Down

0 comments on commit abbb33e

Please sign in to comment.