change pop function invoke

This commit is contained in:
王劲鹏 2021-06-09 20:55:44 +08:00 committed by osborn
parent 41ebe1d64a
commit 928a4ab038

View File

@ -45,7 +45,7 @@ ApplicationWindow {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onClicked: { onClicked: {
stack.pop() navigatorPop()
} }
} }
} }
@ -169,6 +169,7 @@ ApplicationWindow {
function navigatorPop() { function navigatorPop() {
stack.pop() stack.pop()
console.log("stack.depth", stack.depth)
if (stack.depth > 1) { if (stack.depth > 1) {
navbar.visible = true navbar.visible = true
} else { } else {