diff --git a/src/BiliLite.UWP/Pages/DownloadPage.xaml.cs b/src/BiliLite.UWP/Pages/DownloadPage.xaml.cs index e353e3b4..a2dd8f34 100644 --- a/src/BiliLite.UWP/Pages/DownloadPage.xaml.cs +++ b/src/BiliLite.UWP/Pages/DownloadPage.xaml.cs @@ -46,6 +46,10 @@ public DownloadPage() m_downloadService = App.ServiceProvider.GetRequiredService(); this.InitializeComponent(); Title = "下载"; + if (!m_viewModel.Downloadings.Any()) + { + DownloadPivot.SelectedIndex = 1; + } } protected override void OnNavigatedTo(NavigationEventArgs e) { diff --git a/src/BiliLite.UWP/Services/DownloadService.cs b/src/BiliLite.UWP/Services/DownloadService.cs index 5ff38a92..f0d7d858 100644 --- a/src/BiliLite.UWP/Services/DownloadService.cs +++ b/src/BiliLite.UWP/Services/DownloadService.cs @@ -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>(downloadedDtos);