diff --git a/Ink Canvas/App.xaml.cs b/Ink Canvas/App.xaml.cs index 402b0a64..e1d2f7a2 100644 --- a/Ink Canvas/App.xaml.cs +++ b/Ink Canvas/App.xaml.cs @@ -1079,6 +1079,8 @@ async void App_Startup(object sender, StartupEventArgs e) { isStartupComplete = true; startupCompleteHeartbeat = DateTime.Now; + // 启动完成时重置心跳时间,避免启动阶段主线程长时间忙碌导致误判为“无响应” + lastHeartbeat = startupCompleteHeartbeat; if (_isSplashScreenShown && splashScreenStartTime != DateTime.MinValue) { LogHelper.WriteLogToFile($"启动完成心跳已记录,启动画面显示时长: {(startupCompleteHeartbeat - splashScreenStartTime).TotalSeconds:F2}秒");