Skip to content

Commit

Permalink
bugfix: fixed automatic deletion of non steam games (CEbbinghaus#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
CEbbinghaus authored and jfreuden committed Feb 23, 2024
1 parent 9e0bc12 commit 0c8cb69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn read_msd_directory(datastore: &Store, mount: &Option<String>) -> Result<(), E
let current_games = datastore.get_games_on_card(&cid)?;
for deleted_game in current_games
.iter()
.filter(|v| !games.iter().any(|g| g.appid == v.uid))
.filter(|v| v.is_steam && !games.iter().any(|g| g.appid == v.uid))
{
datastore.unlink(&deleted_game.uid, &cid)?
}
Expand Down

0 comments on commit 0c8cb69

Please sign in to comment.