mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-04 06:45: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 {
|
ChatViewHeader {
|
||||||
id: chatViewHeader
|
id: chatViewHeader
|
||||||
|
|
||||||
|
addParticipantOpened: extrasPanel.currentIndex === ChatView.AddMemberPanel
|
||||||
|
swarmDetailsOpened: extrasPanel.currentIndex === ChatView.SwarmDetailsPanel
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: JamiTheme.chatViewHeaderPreferredHeight
|
Layout.preferredHeight: JamiTheme.chatViewHeaderPreferredHeight
|
||||||
|
|
|
@ -60,6 +60,9 @@ Rectangle {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property bool addParticipantOpened: false
|
||||||
|
property bool swarmDetailsOpened: false
|
||||||
|
|
||||||
property bool addMemberVisibility: {
|
property bool addMemberVisibility: {
|
||||||
return swarmDetailsVisibility && !CurrentConversation.isCoreDialog && !CurrentConversation.isRequest;
|
return swarmDetailsVisibility && !CurrentConversation.isCoreDialog && !CurrentConversation.isRequest;
|
||||||
}
|
}
|
||||||
|
@ -209,6 +212,8 @@ Rectangle {
|
||||||
JamiPushButton {
|
JamiPushButton {
|
||||||
id: addParticipantsButton
|
id: addParticipantsButton
|
||||||
|
|
||||||
|
checkable: true
|
||||||
|
checked: root.addParticipantOpened
|
||||||
visible: interactionButtonsVisibility && addMemberVisibility
|
visible: interactionButtonsVisibility && addMemberVisibility
|
||||||
source: JamiResources.add_people_24dp_svg
|
source: JamiResources.add_people_24dp_svg
|
||||||
toolTipText: JamiStrings.addParticipants
|
toolTipText: JamiStrings.addParticipants
|
||||||
|
@ -239,6 +244,8 @@ Rectangle {
|
||||||
JamiPushButton {
|
JamiPushButton {
|
||||||
id: detailsButton
|
id: detailsButton
|
||||||
|
|
||||||
|
checkable: true
|
||||||
|
checked: root.swarmDetailsOpened
|
||||||
visible: interactionButtonsVisibility && (swarmDetailsVisibility || LRCInstance.currentAccountType === Profile.Type.SIP) // TODO if SIP not a request
|
visible: interactionButtonsVisibility && (swarmDetailsVisibility || LRCInstance.currentAccountType === Profile.Type.SIP) // TODO if SIP not a request
|
||||||
source: JamiResources.swarm_details_panel_svg
|
source: JamiResources.swarm_details_panel_svg
|
||||||
toolTipText: JamiStrings.details
|
toolTipText: JamiStrings.details
|
||||||
|
|
Loading…
Add table
Reference in a new issue