This commit is contained in:
Lightczx
2024-01-04 16:01:52 +08:00
parent 51c3dde24b
commit 27ed2cefc1

View File

@@ -164,7 +164,7 @@ internal sealed partial class GuideViewModel : Abstraction.ViewModel
.Select(category => new DownloadSummary(serviceProvider, category)) .Select(category => new DownloadSummary(serviceProvider, category))
.ToObservableCollection(); .ToObservableCollection();
await Parallel.ForEachAsync(DownloadSummaries, async (summary, token) => await Parallel.ForEachAsync([..DownloadSummaries], async (summary, token) =>
{ {
if (await summary.DownloadAndExtractAsync().ConfigureAwait(false)) if (await summary.DownloadAndExtractAsync().ConfigureAwait(false))
{ {