fix: 尝试修复更新重启后热键失效

This commit is contained in:
uye
2024-02-01 11:29:56 +08:00
parent d8a9d99ab3
commit 56c17c7a2d
3 changed files with 8 additions and 16 deletions

View File

@@ -174,7 +174,7 @@ namespace MaaWpfGui.ViewModels.UI
private JObject _assetsObject;
/// <summary>
/// 检查是否有已下载的更新包,如果有立即更新并重启进程。
/// 检查是否有已下载的更新包
/// </summary>
/// <returns>操作成功返回 <see langword="true"/>,反之则返回 <see langword="false"/>。</returns>
public bool CheckAndUpdateNow()
@@ -300,10 +300,6 @@ namespace MaaWpfGui.ViewModels.UI
UpdatePackageName = string.Empty;
IsFirstBootAfterUpdate = true;
ConfigurationHelper.Release();
// 重启进程(启动的是更新后的程序了)
Bootstrapper.ShutdownAndRestartWithOutArgs();
return true;
static void DeleteFileWithBackup(string filePath)