mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
fix: 修复除version.json外无文件更新时不保存version
This commit is contained in:
@@ -216,15 +216,16 @@ namespace MaaWpfGui.Models
|
||||
return UpdateResult.Failed;
|
||||
}
|
||||
|
||||
if (ret1 != UpdateResult.Success && ret2 != UpdateResult.Success)
|
||||
PostProcVersionChecks();
|
||||
|
||||
if (ret1 == UpdateResult.Success || ret2 == UpdateResult.Success)
|
||||
{
|
||||
OutputDownloadProgress(LocalizationHelper.GetString("GameResourceNotModified"));
|
||||
return UpdateResult.NotModified;
|
||||
OutputDownloadProgress(LocalizationHelper.GetString("GameResourceUpdated"));
|
||||
return UpdateResult.Success;
|
||||
}
|
||||
|
||||
PostProcVersionChecks();
|
||||
OutputDownloadProgress(LocalizationHelper.GetString("GameResourceUpdated"));
|
||||
return UpdateResult.Success;
|
||||
OutputDownloadProgress(LocalizationHelper.GetString("GameResourceNotModified"));
|
||||
return UpdateResult.NotModified;
|
||||
}
|
||||
|
||||
private static async Task<UpdateResult> UpdateSingleFiles(string baseUrl, int maxRetryTime = 2)
|
||||
|
||||
Reference in New Issue
Block a user