Commit 20ef634c authored by Patrick José Pereira's avatar Patrick José Pereira

QGCPipable: Only show popup icon in video

- popup don't work with map
- improve popup visible logic
Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 9a74c077
......@@ -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