Fix adding new archive for redist not showing upon completion

Fixes #42
This commit is contained in:
Pat Hartl 2023-11-28 19:39:41 -06:00
parent a450ac4a18
commit 6cc947b47e

View file

@ -66,7 +66,13 @@
private async Task LoadData()
{
Archives = await ArchiveService.Get(a => a.GameId == GameId).ToListAsync();
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)