修复下载列表视频分区图标部分不显示的问题

croire 3 years ago
parent 59d9854611
commit 65f87c8517

@ -590,6 +590,12 @@ namespace DownKyi.ViewModels
List<ZoneAttr> zoneList = VideoZone.Instance().GetZones(); List<ZoneAttr> zoneList = VideoZone.Instance().GetZones();
ZoneAttr zone = zoneList.Find(it => it.Id == VideoInfoView.TypeId); ZoneAttr zone = zoneList.Find(it => it.Id == VideoInfoView.TypeId);
if (zone != null) if (zone != null)
{
if (zone.ParentId == 0)
{
zoneId = zone.Id;
}
else
{ {
ZoneAttr zoneParent = zoneList.Find(it => it.Id == zone.ParentId); ZoneAttr zoneParent = zoneList.Find(it => it.Id == zone.ParentId);
if (zoneParent != null) if (zoneParent != null)
@ -597,6 +603,7 @@ namespace DownKyi.ViewModels
zoneId = zoneParent.Id; zoneId = zoneParent.Id;
} }
} }
}
// 如果只有一个视频章节,则不在命名中出现 // 如果只有一个视频章节,则不在命名中出现
string sectionName = string.Empty; string sectionName = string.Empty;

@ -42,8 +42,9 @@
TextTrimming="CharacterEllipsis" TextTrimming="CharacterEllipsis"
ToolTip="{Binding MainTitle}"> ToolTip="{Binding MainTitle}">
<TextBlock.Text> <TextBlock.Text>
<MultiBinding StringFormat="{}{0}-{1}"> <MultiBinding StringFormat="{}{0}-{1}-{2}">
<Binding Path="Order" /> <Binding Path="Order" />
<Binding Path="MainTitle" />
<Binding Path="Name" /> <Binding Path="Name" />
</MultiBinding> </MultiBinding>
</TextBlock.Text> </TextBlock.Text>

Loading…
Cancel
Save