Skip to content

Commit

Permalink
#957 下载页优化
Browse files Browse the repository at this point in the history
  • Loading branch information
ywmoyue committed Dec 27, 2024
1 parent 8b12aa1 commit 4d727dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/BiliLite.UWP/Pages/DownloadPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public DownloadPage()
m_downloadService = App.ServiceProvider.GetRequiredService<DownloadService>();
this.InitializeComponent();
Title = "下载";
if (!m_viewModel.Downloadings.Any())
{
DownloadPivot.SelectedIndex = 1;
}
}
protected override void OnNavigatedTo(NavigationEventArgs e)
{
Expand Down
2 changes: 1 addition & 1 deletion src/BiliLite.UWP/Services/DownloadService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ private async Task LoadDownloadFromIndex()
{
var downloadedDtos = m_biliLiteDbContext.DownloadedItems
.Include(x => x.Epsidoes)
.OrderBy(x=>x.IsSeason)
.OrderByDescending(x=>x.UpdateTime)
.ToList();
var downloadedItems = m_mapper.Map<List<DownloadedItem>>(downloadedDtos);

Expand Down

0 comments on commit 4d727dc

Please sign in to comment.