Browse Source

Remove "Pipable" control if there is no Video.

QGC4.4
dogmaphobic 9 years ago
parent
commit
0a79fb5a90
  1. 5
      src/FlightDisplay/FlightDisplayView.qml

5
src/FlightDisplay/FlightDisplayView.qml

@ -50,8 +50,8 @@ QGCView { @@ -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 { @@ -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: {

Loading…
Cancel
Save