Skip to content
Snippets Groups Projects
Commit 112c6a4d authored by Andreas Hatziiliou's avatar Andreas Hatziiliou
Browse files

chatview: disable visibility of sidepanel when adding contact

GitLab: #1871

Change-Id: I1949c0da388c637123801db39310a1c9fd8c7b99
parent 188f4876
No related branches found
No related tags found
No related merge requests found
......@@ -133,12 +133,13 @@ Rectangle {
target: CurrentConversation
function onIdChanged() {
console.log(CurrentConversation.id);
if (width < JamiTheme.mainViewMinWidth + extrasPanel.width) {
extrasPanel.visible = false;
}
if (!chatViewHeader.interactionButtonsVisibility)
if (!chatViewHeader.detailsButtonVisibility) {
extrasPanel.closePanel();
} else if (width < JamiTheme.mainViewMinWidth + extrasPanel.width) {
extrasPanel.closePanel();
} else if (!chatViewHeader.interactionButtonsVisibility) {
extrasPanel.closePanel();
}
}
function onNeedsHost() {
......
......@@ -46,6 +46,8 @@ Rectangle {
}
}
property bool detailsButtonVisibility: detailsButton.visible
readonly property bool interactionButtonsVisibility: {
if (CurrentConversation.inCall)
return false;
......
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