Skip to content
Snippets Groups Projects
Commit 28151682 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

chatviewheader: keep button selected when linked tab is opened

Change-Id: I5b4df32352bc1e6e5281a18e16c8da902242bc4f
GitLab: #1233
parent a2d11074
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment