From 703e548c316d4cb35481cc953b43e68d025690be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= Date: Wed, 27 May 2026 09:23:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E7=94=A8=E5=AF=BC=E8=88=AA=E7=9B=B8?= =?UTF-8?q?=E6=9C=BA=E8=87=AA=E5=8A=A8=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- XplorePlane/App.xaml.cs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/XplorePlane/App.xaml.cs b/XplorePlane/App.xaml.cs index 1e99625..ab2d86a 100644 --- a/XplorePlane/App.xaml.cs +++ b/XplorePlane/App.xaml.cs @@ -374,22 +374,22 @@ namespace XplorePlane // { // Log.Error(ex, "通知相机 ViewModel 失败"); // } - // [DEV] 导航相机连接已屏蔽,开发阶段跳过以加快启动速度 - //TryConnectCamera(); - //try - //{ - // var cameraVm = Container.Resolve(); - // cameraVm.OnCameraReady(); - //} - //catch (Exception ex) - //{ - // Log.Error(ex, "Failed to notify the camera ViewModel"); - //} - //if (_cameraError != null) - //{ - // HexMessageBox.Show(_cameraError, MessageBoxButton.OK, MessageBoxImage.Error); - //} + TryConnectCamera(); + try + { + var cameraVm = Container.Resolve(); + cameraVm.OnCameraReady(); + } + catch (Exception ex) + { + Log.Error(ex, "Failed to notify the camera ViewModel"); + } + + if (_cameraError != null) + { + HexMessageBox.Show(_cameraError, MessageBoxButton.OK, MessageBoxImage.Error); + } }; return shell;