mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
Avoid to load details while animating contact stack view.
This commit is contained in:
parent
60182a8797
commit
5d0d8ec7a7
1 changed files with 15 additions and 4 deletions
|
|
@ -101,12 +101,25 @@ AbstractMainPage {
|
|||
anchors.leftMargin: 45 * DefaultStyle.dp
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
|
||||
property var setFocusAtEnd
|
||||
|
||||
clip: true
|
||||
initialItem: historyListItem
|
||||
focus: true
|
||||
|
||||
onActiveFocusChanged: if(activeFocus){
|
||||
currentItem.forceActiveFocus()
|
||||
}
|
||||
|
||||
onBusyChanged: if( !busy && setFocusAtEnd) {
|
||||
setFocusAtEnd.forceActiveFocus()
|
||||
setFocusAtEnd = undefined
|
||||
}
|
||||
function doPop(setFocus){
|
||||
setFocusAtEnd = setFocus
|
||||
listStackView.pop()
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
|
|
@ -457,8 +470,7 @@ AbstractMainPage {
|
|||
KeyNavigation.down: listStackView
|
||||
onClicked: {
|
||||
console.debug("[CallPage]User: return to call history")
|
||||
listStackView.pop()
|
||||
listStackView.forceActiveFocus()
|
||||
listStackView.doPop(listStackView)
|
||||
}
|
||||
}
|
||||
Text {
|
||||
|
|
@ -531,8 +543,7 @@ AbstractMainPage {
|
|||
KeyNavigation.right: groupCallButton
|
||||
KeyNavigation.left: groupCallButton
|
||||
onClicked: {
|
||||
listStackView.pop()
|
||||
titleLoader.item.forceActiveFocus()
|
||||
listStackView.doPop(titleLoader.item)
|
||||
}
|
||||
}
|
||||
ColumnLayout {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue