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;