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;