From 944364991146d617499560eeb2363dcdacf591b5 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Fri, 18 Jul 2025 14:02:00 +0200 Subject: [PATCH] Hide share button if no screen has been selected for screen sharing. --- linphone-app/ui/modules/Linphone/Menus/IncallMenu.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/linphone-app/ui/modules/Linphone/Menus/IncallMenu.qml b/linphone-app/ui/modules/Linphone/Menus/IncallMenu.qml index 72f574561..1299b8db7 100644 --- a/linphone-app/ui/modules/Linphone/Menus/IncallMenu.qml +++ b/linphone-app/ui/modules/Linphone/Menus/IncallMenu.qml @@ -334,6 +334,8 @@ Rectangle{ id: screenSharingItem property VideoSourceDescriptorModel desc: mainItem.callModel.videoSourceDescriptorModel property string title + property bool isSelected: !!screenSharingItem.desc.windowId || screenSharingItem.desc.screenSharingIndex>=0 + Layout.fillHeight: true Layout.fillWidth: true RadioButton{ @@ -445,12 +447,12 @@ Rectangle{ } Item{// Item encapsulation because of a bug on width update when changing text Layout.fillWidth: true - Layout.preferredHeight: screenSharingButton.fitHeight + Layout.preferredHeight: screenSharingItem.isSelected ? screenSharingButton.fitHeight : 0 Layout.margins: 20 TextButtonB{ id: screenSharingButton anchors.fill: parent - visible: mainItem.screenSharingAvailable + visible: mainItem.screenSharingAvailable && screenSharingItem.isSelected enabled: displayRadioButton.checked || windowSharingRadioButton.checked text: mainItem.conferenceModel && mainItem.conferenceModel.isLocalScreenSharingEnabled //: 'Stop' : Text button to stop the screen sharing.