mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-03 22:35:45 +02:00
chatviewheader: keep button selected when linked tab is opened
Change-Id: I5b4df32352bc1e6e5281a18e16c8da902242bc4f GitLab: #1233
This commit is contained in:
parent
a2d110740d
commit
281516823e
2 changed files with 10 additions and 0 deletions
|
@ -99,6 +99,9 @@ Rectangle {
|
|||
ChatViewHeader {
|
||||
id: chatViewHeader
|
||||
|
||||
addParticipantOpened: extrasPanel.currentIndex === ChatView.AddMemberPanel
|
||||
swarmDetailsOpened: extrasPanel.currentIndex === ChatView.SwarmDetailsPanel
|
||||
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: JamiTheme.chatViewHeaderPreferredHeight
|
||||
|
|
|
@ -60,6 +60,9 @@ Rectangle {
|
|||
return true;
|
||||
}
|
||||
|
||||
property bool addParticipantOpened: false
|
||||
property bool swarmDetailsOpened: false
|
||||
|
||||
property bool addMemberVisibility: {
|
||||
return swarmDetailsVisibility && !CurrentConversation.isCoreDialog && !CurrentConversation.isRequest;
|
||||
}
|
||||
|
@ -209,6 +212,8 @@ Rectangle {
|
|||
JamiPushButton {
|
||||
id: addParticipantsButton
|
||||
|
||||
checkable: true
|
||||
checked: root.addParticipantOpened
|
||||
visible: interactionButtonsVisibility && addMemberVisibility
|
||||
source: JamiResources.add_people_24dp_svg
|
||||
toolTipText: JamiStrings.addParticipants
|
||||
|
@ -239,6 +244,8 @@ Rectangle {
|
|||
JamiPushButton {
|
||||
id: detailsButton
|
||||
|
||||
checkable: true
|
||||
checked: root.swarmDetailsOpened
|
||||
visible: interactionButtonsVisibility && (swarmDetailsVisibility || LRCInstance.currentAccountType === Profile.Type.SIP) // TODO if SIP not a request
|
||||
source: JamiResources.swarm_details_panel_svg
|
||||
toolTipText: JamiStrings.details
|
||||
|
|
Loading…
Add table
Reference in a new issue