From 8cb81cae6cb84477f0b1d0459497465c1a6ef5b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= Date: Tue, 28 Apr 2026 09:18:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E8=BF=9E=E6=8E=A5=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E7=9B=B8=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- XplorePlane/App.xaml.cs | 48 ++++++++++++++--------------------------- 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/XplorePlane/App.xaml.cs b/XplorePlane/App.xaml.cs index f1b6bab..7c25706 100644 --- a/XplorePlane/App.xaml.cs +++ b/XplorePlane/App.xaml.cs @@ -282,7 +282,8 @@ namespace XplorePlane // 主窗口加载完成后再连接相机,确保所有模块和原生 DLL 已完成初始化 shell.Loaded += (s, e) => { - TryConnectCamera(); + // [DEV] 导航相机连接已屏蔽,开发阶段跳过以加快启动速度 + // TryConnectCamera(); // 初始化主界面探测器帧流水线,开始接收探测器图像事件 try @@ -294,38 +295,21 @@ namespace XplorePlane Log.Error(ex, "初始化主界面探测器帧流水线失败"); } - // 通知 ViewModel 相机状态已确定,启动实时预览或显示错误 - try - { - var cameraVm = Container.Resolve(); - cameraVm.OnCameraReady(); - } - catch (Exception ex) - { - Log.Error(ex, "通知相机 ViewModel 失败"); - } + // [DEV] 相机状态通知已屏蔽 + // try + // { + // var cameraVm = Container.Resolve(); + // cameraVm.OnCameraReady(); + // } + // catch (Exception ex) + // { + // Log.Error(ex, "通知相机 ViewModel 失败"); + // } - if (_cameraError != null) - { - HexMessageBox.Show(_cameraError, MessageBoxButton.OK, MessageBoxImage.Error); - } - //TryConnectCamera(); - - //// 通知 ViewModel 相机状态已确定,启动实时预览或显示错误 - // try - // { - // var cameraVm = Container.Resolve(); - // cameraVm.OnCameraReady(); - // } - // catch (Exception ex) - // { - // Log.Error(ex, "通知相机 ViewModel 失败"); - // } - - // if (_cameraError != null) - // { - // HexMessageBox.Show(_cameraError, MessageBoxButton.OK, MessageBoxImage.Error); - //} + // if (_cameraError != null) + // { + // HexMessageBox.Show(_cameraError, MessageBoxButton.OK, MessageBoxImage.Error); + // } }; return shell;