1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-20 07:25:24 +02:00

sip: hide non working button

https://git.jami.net/savoirfairelinux/jami-project/-/issues/1538
Change-Id: I50593347fe2c1adbeecdd371400f639234dad74c
This commit is contained in:
Sébastien Blin 2023-03-24 14:25:10 -04:00
parent 8db63dcebc
commit 06ddff4584
2 changed files with 17 additions and 9 deletions

View file

@ -276,10 +276,13 @@ Control {
anchors.verticalCenter: parent.verticalCenter
anchors.right: isOutgoing ? optionButtonItem.right : undefined
anchors.left: !isOutgoing ? optionButtonItem.left : undefined
visible: Body !== "" && (bubbleArea.bubbleHovered
visible: CurrentAccount.type !== Profile.Type.SIP && Body !== "" &&
(
bubbleArea.bubbleHovered
|| hovered
|| reply.hovered
|| bgHandler.hovered)
|| bgHandler.hovered
)
source: JamiResources.more_vert_24dp_svg
width: optionButtonItem.width / 2
height: optionButtonItem.height
@ -312,10 +315,13 @@ Control {
anchors.verticalCenter: parent.verticalCenter
anchors.right: isOutgoing ? more.left : undefined
anchors.left: !isOutgoing ? more.right : undefined
visible: Body !== "" && (bubbleArea.bubbleHovered
visible: CurrentAccount.type !== Profile.Type.SIP && Body !== "" &&
(
bubbleArea.bubbleHovered
|| hovered
|| more.hovered
|| bgHandler.hovered)
|| bgHandler.hovered
)
onClicked: {
MessagesAdapter.editId = ""

View file

@ -97,6 +97,7 @@ ColumnLayout {
preferredSize: JamiTheme.chatViewFooterButtonIconSize - 6
toolTipText: JamiStrings.sendFile
visible: !CurrentConversation.isSip
source: JamiResources.link_black_24dp_svg
@ -117,6 +118,7 @@ ColumnLayout {
preferredSize: JamiTheme.chatViewFooterButtonIconSize
toolTipText: JamiStrings.leaveAudioMessage
visible: !CurrentConversation.isSip
source: JamiResources.message_audio_black_24dp_svg
@ -134,7 +136,7 @@ ColumnLayout {
Layout.alignment: Qt.AlignVCenter
Layout.preferredWidth: JamiTheme.chatViewFooterButtonSize
Layout.preferredHeight: JamiTheme.chatViewFooterButtonSize
visible: VideoDevices.listSize !== 0
visible: VideoDevices.listSize !== 0 && !CurrentConversation.isSip
radius: JamiTheme.chatViewFooterButtonRadius
preferredSize: JamiTheme.chatViewFooterButtonIconSize