Avoid to load details while animating contact stack view.

This commit is contained in:
Julien Wadel 2025-01-16 10:39:07 +01:00
parent 60182a8797
commit 5d0d8ec7a7

View file

@ -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 {