Skip to content

Commit

Permalink
chore: 调整更新细节
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetSmellFox committed Jan 1, 2025
1 parent 10597c1 commit 78d63b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Utils/VersionChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public async void UpdateResource(bool closeDialog = false, bool noDialog = false
{
dialog?.Close();
});
return;
}
dialog?.SetText("ApplyingUpdate".GetLocalizationString());
dialog?.UpdateProgress(5);
Expand All @@ -218,6 +219,7 @@ public async void UpdateResource(bool closeDialog = false, bool noDialog = false
{
dialog?.Close();
});
return;
}
ZipFile.ExtractToDirectory(tempZipFilePath, tempExtractDir);
dialog?.UpdateProgress(50);
Expand Down Expand Up @@ -379,6 +381,7 @@ public async void UpdateMFA(bool noDialog = false)
{
dialog?.Close();
});
return;
}
var tempExtractDir = Path.Combine(tempPath, $"mfa_{latestVersion}_extracted");
if (Directory.Exists(tempExtractDir))
Expand All @@ -392,6 +395,7 @@ public async void UpdateMFA(bool noDialog = false)
{
dialog?.Close();
});
return;
}
ZipFile.ExtractToDirectory(tempZipFilePath, tempExtractDir);

Expand Down

0 comments on commit 78d63b0

Please sign in to comment.