Fix media importing

Fix an issue where only the first media item of a import file (.LCX) was being imported for a game.
This commit is contained in:
Pat Hartl 2024-02-10 01:51:14 -06:00 committed by GitHub
parent 5b64f6ecf5
commit f9dca820d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -446,7 +446,7 @@ namespace LANCommander.Services
}
if (manifest.Media != null)
foreach (var manifestMedia in manifest.Media.Where(mm => !game.Media.Any(m => m.Id != mm.Id)))
foreach (var manifestMedia in manifest.Media.Where(mm => !game.Media.Any(m => m.Id == mm.Id)))
{
var media = new Media()
{