mirror of
https://github.com/leiurayer/downkyi.git
synced 2024-04-21 12:41:55 +00:00
修复批量操作时偶尔崩溃的问题
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user