mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
fix: 尝试修复更新重启后热键失效
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user