From 9924a536f171794677ff1dbd609dc327c24fc726 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Thu, 21 Apr 2022 16:26:28 -0400
Subject: [PATCH] participantslayer: fix visibility of buttons

If a participant is maximised and minimized while active, the
button is not correctly displayed

Change-Id: I15a32e4f2bbbcd49b3448fb7f241edb6ad37250b
---
 src/mainview/components/ParticipantsLayer.qml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mainview/components/ParticipantsLayer.qml b/src/mainview/components/ParticipantsLayer.qml
index 9d8d44175..23d38512c 100644
--- a/src/mainview/components/ParticipantsLayer.qml
+++ b/src/mainview/components/ParticipantsLayer.qml
@@ -131,6 +131,7 @@ Item {
                     radius: 10
                     text: "<"
                     visible: genericParticipantsRect.currentPos > 0
+                             && activeParticipantsFlow.visible
                     onClicked: {
                         if (genericParticipantsRect.currentPos > 0)
                             genericParticipantsRect.currentPos--
@@ -239,6 +240,7 @@ Item {
                     radius: 10
                     text: ">"
                     visible: genericParticipantsRect.topLimit - genericParticipantsRect.showable > genericParticipantsRect.currentPos
+                             && activeParticipantsFlow.visible
                     onClicked: {
                         if (genericParticipantsRect.topLimit - genericParticipantsRect.showable > genericParticipantsRect.currentPos)
                             genericParticipantsRect.currentPos++
-- 
GitLab