fixed navigation during initial installation

This commit is contained in:
vladimir.kuznetsov 2023-09-08 18:05:08 +05:00
parent b5dd48ad7b
commit fdff57da7c
2 changed files with 28 additions and 2 deletions

View file

@ -23,6 +23,28 @@ PageType {
function onShowBusyIndicator(visible) {
busyIndicator.visible = visible
}
function onClosePage() {
if (stackView.depth <= 1) {
return
}
stackView.pop()
}
function onGoToPage(page, slide) {
var pagePath = PageController.getPagePath(page)
if (slide) {
stackView.push(pagePath, { "objectName" : pagePath }, StackView.PushTransition)
} else {
stackView.push(pagePath, { "objectName" : pagePath }, StackView.Immediate)
}
}
function onGoToStartPage() {
while (stackView.depth > 1) {
stackView.pop()
}
}
}
Connections {