From 591ea2cf062bb686afd8d7617f587305fc277bc4 Mon Sep 17 00:00:00 2001 From: croire <1432593898@qq.com> Date: Sat, 4 Jun 2022 21:42:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=97=B6=E5=81=B6=E5=B0=94=E5=B4=A9=E6=BA=83=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DownloadManager/ViewDownloadFinishedViewModel.cs | 3 ++- DownKyi/ViewModels/DownloadManager/ViewDownloadingViewModel.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DownKyi/ViewModels/DownloadManager/ViewDownloadFinishedViewModel.cs b/DownKyi/ViewModels/DownloadManager/ViewDownloadFinishedViewModel.cs index 68d520c..6ec73b7 100644 --- a/DownKyi/ViewModels/DownloadManager/ViewDownloadFinishedViewModel.cs +++ b/DownKyi/ViewModels/DownloadManager/ViewDownloadFinishedViewModel.cs @@ -140,7 +140,8 @@ namespace DownKyi.ViewModels.DownloadManager { await Task.Run(() => { - foreach (var item in DownloadedList) + List list = DownloadedList.ToList(); + foreach (var item in list) { if (item != null && item.DialogService == null) { diff --git a/DownKyi/ViewModels/DownloadManager/ViewDownloadingViewModel.cs b/DownKyi/ViewModels/DownloadManager/ViewDownloadingViewModel.cs index 913f57c..7d2e826 100644 --- a/DownKyi/ViewModels/DownloadManager/ViewDownloadingViewModel.cs +++ b/DownKyi/ViewModels/DownloadManager/ViewDownloadingViewModel.cs @@ -178,7 +178,8 @@ namespace DownKyi.ViewModels.DownloadManager { await Task.Run(() => { - foreach (var item in DownloadingList) + List list = DownloadingList.ToList(); + foreach (var item in list) { if (item != null && item.DialogService == null) {