修复批量操作时偶尔崩溃的问题

This commit is contained in:
leiurayer
2022-06-05 00:33:16 +08:00
parent f8f9211046
commit a2a627a477
2 changed files with 4 additions and 2 deletions
@@ -140,7 +140,8 @@ namespace DownKyi.ViewModels.DownloadManager
{
await Task.Run(() =>
{
foreach (var item in DownloadedList)
List<DownloadedItem> list = DownloadedList.ToList();
foreach (var item in list)
{
if (item != null && item.DialogService == null)
{
@@ -178,7 +178,8 @@ namespace DownKyi.ViewModels.DownloadManager
{
await Task.Run(() =>
{
foreach (var item in DownloadingList)
List<DownloadingItem> list = DownloadingList.ToList();
foreach (var item in list)
{
if (item != null && item.DialogService == null)
{