fix: 合集选中使用cid区分

This commit is contained in:
yaobiao131
2024-10-28 15:43:29 +08:00
committed by GitHub

View File

@@ -356,9 +356,9 @@ public class ViewVideoDetailViewModel : ViewModelBase
{
return;
}
var avids = new HashSet<long>(parameter.Cast<VideoPage>().Select(x => x.Avid));
var avids = new HashSet<long>(parameter.Cast<VideoPage>().Select(x => x.Cid));
section.VideoPages.ToList().ForEach(videoPage =>
videoPage.IsSelected = avids.Contains(videoPage.Avid)
videoPage.IsSelected = avids.Contains(videoPage.Cid)
);
IsSelectAll = section.VideoPages.Count == videoPages.Count && section.VideoPages.Count != 0;
}