Unverified Commit 71a57cb2 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #5879 from patrickelectric/video_update

QGCPipable: Only show popup icon in video
parents 5c23f138 20ef634c
......@@ -344,6 +344,7 @@ QGCView {
visible: QGroundControl.videoManager.hasVideo && !QGroundControl.videoManager.fullScreen
isHidden: !_isPipVisible
isDark: isBackgroundDark
enablePopup: _mainIsMap
onActivated: {
_mainIsMap = !_mainIsMap
setStates()
......
......@@ -27,6 +27,7 @@ Item {
property real minSize: 0.10
property bool inPopup: false
property bool enablePopup: true
signal activated()
signal hideIt(bool state)
......@@ -127,7 +128,7 @@ Item {
fillMode: Image.PreserveAspectFit
anchors.left: parent.left
anchors.top: parent.top
visible: !isHidden && (ScreenTools.isMobile || pipMouseArea.containsMouse) && !inPopup && !ScreenTools.isMobile
visible: !isHidden && !inPopup && !ScreenTools.isMobile && enablePopup
height: ScreenTools.defaultFontPixelHeight * 2.5
width: ScreenTools.defaultFontPixelHeight * 2.5
sourceSize.height: height
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment