Add swapped to SetTo

This commit is contained in:
Justin Swanson 2020-04-12 13:18:08 -05:00
parent 14a2285b73
commit db293b6808

View File

@ -282,7 +282,7 @@ namespace Wabbajack.Lib
var hashResults = await DownloadFolder.EnumerateFiles()
.Where(e => e.Extension != Consts.HashFileExtension)
.PMap(Queue, async e => (await e.FileHashCachedAsync(), e));
HashedArchives.Add(hashResults
HashedArchives.SetTo(hashResults
.OrderByDescending(e => e.Item2.LastModified)
.GroupBy(e => e.Item1)
.Select(e => e.First())