优化代码

This commit is contained in:
2025-10-25 19:57:56 +08:00
parent ab73eb9632
commit 7b2a31781c
2 changed files with 13 additions and 3 deletions
+11
View File
@@ -3011,6 +3011,14 @@ namespace Ink_Canvas
{
try
{
timerKillProcess.Stop();
if (App.watchdogProcess != null && !App.watchdogProcess.HasExited)
{
App.watchdogProcess.Kill();
App.watchdogProcess = null;
}
// 调用UIAccess DLL
if (Environment.Is64BitProcess)
{
@@ -3020,6 +3028,9 @@ namespace Ink_Canvas
{
PrepareUIAccessX86();
}
App.StartWatchdogIfNeeded();
timerKillProcess.Start();
}
catch (Exception ex)
{