android back button pops pages from stackview unless we reach
bottom of stack
This commit is contained in:
@@ -196,9 +196,14 @@ ApplicationWindow
|
|||||||
}
|
}
|
||||||
|
|
||||||
onClosing: {
|
onClosing: {
|
||||||
// destroy most GUI components so that we don't dump so many null reference warnings on exit
|
if (stack.depth > 1) {
|
||||||
app.header.visible = false
|
close.accepted = false
|
||||||
mainStackView.clear()
|
stack.pop()
|
||||||
|
} else {
|
||||||
|
// destroy most GUI components so that we don't dump so many null reference warnings on exit
|
||||||
|
app.header.visible = false
|
||||||
|
mainStackView.clear()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
|
|||||||
Reference in New Issue
Block a user