From 65f87c8517686358b99295635094def47f21bbc1 Mon Sep 17 00:00:00 2001 From: croire <1432593898@qq.com> Date: Thu, 23 Dec 2021 00:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8B=E8=BD=BD=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=A7=86=E9=A2=91=E5=88=86=E5=8C=BA=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E9=83=A8=E5=88=86=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DownKyi/ViewModels/ViewVideoDetailViewModel.cs | 13 ++++++++++--- DownKyi/Views/DownloadManager/ViewDownloading.xaml | 3 ++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/DownKyi/ViewModels/ViewVideoDetailViewModel.cs b/DownKyi/ViewModels/ViewVideoDetailViewModel.cs index f1bab8d..b9a4b19 100644 --- a/DownKyi/ViewModels/ViewVideoDetailViewModel.cs +++ b/DownKyi/ViewModels/ViewVideoDetailViewModel.cs @@ -591,10 +591,17 @@ namespace DownKyi.ViewModels ZoneAttr zone = zoneList.Find(it => it.Id == VideoInfoView.TypeId); if (zone != null) { - ZoneAttr zoneParent = zoneList.Find(it => it.Id == zone.ParentId); - if (zoneParent != null) + if (zone.ParentId == 0) { - zoneId = zoneParent.Id; + zoneId = zone.Id; + } + else + { + ZoneAttr zoneParent = zoneList.Find(it => it.Id == zone.ParentId); + if (zoneParent != null) + { + zoneId = zoneParent.Id; + } } } diff --git a/DownKyi/Views/DownloadManager/ViewDownloading.xaml b/DownKyi/Views/DownloadManager/ViewDownloading.xaml index 20e60b8..6d65d4e 100644 --- a/DownKyi/Views/DownloadManager/ViewDownloading.xaml +++ b/DownKyi/Views/DownloadManager/ViewDownloading.xaml @@ -42,8 +42,9 @@ TextTrimming="CharacterEllipsis" ToolTip="{Binding MainTitle}"> - + +