Skip to content
Snippets Groups Projects
Commit 0a79fb5a authored by dogmaphobic's avatar dogmaphobic
Browse files

Remove "Pipable" control if there is no Video.

parent c1cd38ac
Branches
No related tags found
No related merge requests found
......@@ -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: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment