perf(wpf): 当热更资源命中时, 不再二次加载资源 (#15907)

perf: 当热更资源命中时, 不再二次加载资源
This commit is contained in:
Status102
2026-03-08 20:49:17 +08:00
committed by GitHub
parent a8d5d95c20
commit e8ec73a67c
4 changed files with 53 additions and 44 deletions

View File

@@ -880,7 +880,7 @@ public class VersionUpdateDialogViewModel : Screen
private async Task<CheckUpdateRetT> CheckUpdateByMaaApi()
{
JObject json = await Instances.MaaApiService.RequestMaaApiWithCache(MaaUpdateApi);
var (_, json) = await Instances.MaaApiService.RequestMaaApiWithCache(MaaUpdateApi);
if (json is null)
{
@@ -908,7 +908,7 @@ public class VersionUpdateDialogViewModel : Screen
private async Task<CheckUpdateRetT> GetVersionDetailsByMaaApi(string versionType)
{
var json = await Instances.MaaApiService.RequestMaaApiWithCache($"version/{versionType}.json", false);
var (_, json) = await Instances.MaaApiService.RequestMaaApiWithCache($"version/{versionType}.json", false);
if (json is null)
{
return CheckUpdateRetT.NetworkError;