Fix adding new archive for redist not showing upon completion

Fixes #42
net8.0
Pat Hartl 2023-11-28 19:39:41 -06:00
parent a450ac4a18
commit 6cc947b47e
1 changed files with 7 additions and 1 deletions

View File

@ -66,7 +66,13 @@
private async Task LoadData()
{
if (GameId != Guid.Empty)
Archives = await ArchiveService.Get(a => a.GameId == GameId).ToListAsync();
else if (RedistributableId != Guid.Empty)
Archives = await ArchiveService.Get(a => a.RedistributableId == RedistributableId).ToListAsync();
if (ArchivesChanged.HasDelegate)
await ArchivesChanged.InvokeAsync(Archives);
}
private async Task Download(Archive archive)