Improved the resource handling when loading models.

This commit is contained in:
tsommer committed 2025-01-29 07:27:36 +01:00
1 parent 54264345d9
commit abaa4fa7b7
10 files changed
+17 -16

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ public partial class Home : ComponentBase
private async Task ReadLastChangeAsync()
{
var latest = Changelog.LOGS.MaxBy(n => n.Build);
var response = await this.HttpClient.GetAsync($"changelog/{latest.Filename}");
using var response = await this.HttpClient.GetAsync($"changelog/{latest.Filename}");
this.LastChangeContent = await response.Content.ReadAsStringAsync();
}