chore: coding style upgrade (#10157)

chore: code style upgrade
This commit is contained in:
CY-Zhu
2024-08-10 00:05:40 +08:00
committed by GitHub
parent f7c591239d
commit 3bbcb7c087
3 changed files with 45 additions and 19 deletions

View File

@@ -235,6 +235,7 @@ namespace MaaWpfGui.ViewModels.UI
{
File.Delete("MAA_win7.exe");
}
if (File.Exists("启动旧版.cmd"))
{
File.Delete("启动旧版.cmd");
@@ -537,8 +538,7 @@ namespace MaaWpfGui.ViewModels.UI
{
Process.Start(new ProcessStartInfo(UpdateUrl) { UseShellExecute = true });
}
}
);
});
_ = Execute.OnUIThreadAsync(() =>
{
using var toast = new ToastNotification((otaFound ? LocalizationHelper.GetString("NewVersionFoundTitle") : LocalizationHelper.GetString("NewVersionFoundButNoPackageTitle")) + " : " + UpdateTag);