diff --git a/src/FlightDisplay/FlightDisplayView.qml b/src/FlightDisplay/FlightDisplayView.qml index fdced82c0f0dee5d55a6165f2550944717cc08cb..33fab6f09e26af7c07fd2b362c45fbcbbe1e3aaf 100644 --- a/src/FlightDisplay/FlightDisplayView.qml +++ b/src/FlightDisplay/FlightDisplayView.qml @@ -50,8 +50,8 @@ QGCView { property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle - property bool _mainIsMap: QGroundControl.loadBoolGlobalSetting(_mainIsMapKey, true) - property bool _isPipVisible: QGroundControl.loadBoolGlobalSetting(_PIPVisibleKey, true) + property bool _mainIsMap: _controller.hasVideo ? QGroundControl.loadBoolGlobalSetting(_mainIsMapKey, true) : true + property bool _isPipVisible: _controller.hasVideo ? QGroundControl.loadBoolGlobalSetting(_PIPVisibleKey, true) : false property real _roll: _activeVehicle ? _activeVehicle.roll.value : _defaultRoll property real _pitch: _activeVehicle ? _activeVehicle.pitch.value : _defaultPitch @@ -211,6 +211,7 @@ QGCView { anchors.left: _panel.left anchors.bottom: _panel.bottom anchors.margins: ScreenTools.defaultFontPixelHeight + visible: _controller.hasVideo isHidden: !_isPipVisible isDark: isBackgroundDark onActivated: {