fix removal of stale paths

This commit is contained in:
Stanley Dimant
2024-09-09 21:43:41 +02:00
parent 114ab2f4e1
commit be3cd00227

View File

@@ -85,8 +85,10 @@ public sealed class TransientResourceManager : DisposableMediatorSubscriberBase
foreach (var replacement in fileReplacement.Where(p => !p.HasFileReplacement).SelectMany(p => p.GamePaths).ToList()) foreach (var replacement in fileReplacement.Where(p => !p.HasFileReplacement).SelectMany(p => p.GamePaths).ToList())
{ {
value.RemoveWhere(p => string.Equals(p, replacement, StringComparison.OrdinalIgnoreCase)); PlayerConfig.RemovePath(replacement);
} }
_configurationService.Save();
} }
} }