From 505dab33103fc130d05f66846759580725146183 Mon Sep 17 00:00:00 2001 From: leiurayer <1432593898@qq.com> Date: Mon, 4 Apr 2022 17:02:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BF=87=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E4=B8=AD=E6=95=B0=E6=8D=AE=E4=B8=A2=E5=A4=B1=E7=9A=84item?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DownKyi/Services/Download/DownloadStorageService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/DownKyi/Services/Download/DownloadStorageService.cs b/src/DownKyi/Services/Download/DownloadStorageService.cs index 92df1e4..5421aa9 100644 --- a/src/DownKyi/Services/Download/DownloadStorageService.cs +++ b/src/DownKyi/Services/Download/DownloadStorageService.cs @@ -76,6 +76,7 @@ namespace DownKyi.Services.Download Downloading = downloading }; + if (downloadingItem.DownloadBase == null) { continue; } list.Add(downloadingItem); } } @@ -153,13 +154,14 @@ namespace DownKyi.Services.Download { if (item.Value is Downloaded downloaded) { - DownloadedItem downloadingItem = new DownloadedItem + DownloadedItem downloadedItem = new DownloadedItem { DownloadBase = GetDownloadBase(item.Key), Downloaded = downloaded }; - list.Add(downloadingItem); + if (downloadedItem.DownloadBase == null) { continue; } + list.Add(downloadedItem); } }