mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-15 04:55:23 +02:00
chatview: hide the show plugins button for read-only conversations
Gitlab: #492 Change-Id: I4f5d0ed77dd8d2b4ed20af37525b9d33e967d649
This commit is contained in:
parent
53b5add8e7
commit
db6c39cc4c
1 changed files with 5 additions and 4 deletions
|
@ -36,7 +36,7 @@ Rectangle {
|
|||
signal needToHideConversationInCall
|
||||
signal pluginSelector
|
||||
|
||||
property bool callButtonsVisibility: {
|
||||
property bool interactionButtonsVisibility: {
|
||||
if (CurrentConversation.inCall)
|
||||
return false
|
||||
if (CurrentConversation.isSwarm &&
|
||||
|
@ -142,7 +142,7 @@ Rectangle {
|
|||
PushButton {
|
||||
id: startAAudioCallButton
|
||||
|
||||
visible: callButtonsVisibility
|
||||
visible: interactionButtonsVisibility
|
||||
|
||||
anchors.right: startAVideoCallButton.left
|
||||
anchors.rightMargin: 8
|
||||
|
@ -160,7 +160,7 @@ Rectangle {
|
|||
PushButton {
|
||||
id: startAVideoCallButton
|
||||
|
||||
visible: callButtonsVisibility
|
||||
visible: interactionButtonsVisibility
|
||||
|
||||
anchors.right: selectPluginButton.visible ? selectPluginButton.left :
|
||||
sendContactRequestButton.visible ?
|
||||
|
@ -181,7 +181,8 @@ Rectangle {
|
|||
PushButton {
|
||||
id: selectPluginButton
|
||||
|
||||
visible: PluginAdapter.chatHandlersListCount
|
||||
visible: PluginAdapter.chatHandlersListCount &&
|
||||
interactionButtonsVisibility
|
||||
|
||||
anchors.right: sendContactRequestButton.visible ?
|
||||
sendContactRequestButton.left :
|
||||
|
|
Loading…
Add table
Reference in a new issue