From fdff57da7c5896fa07bff7b49aeadc45b43da85e Mon Sep 17 00:00:00 2001 From: "vladimir.kuznetsov" Date: Fri, 8 Sep 2023 18:05:08 +0500 Subject: [PATCH] fixed navigation during initial installation --- client/platforms/ios/MobileUtils.cpp | 8 +++++-- client/ui/qml/Pages2/PageSetupWizardStart.qml | 22 +++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/client/platforms/ios/MobileUtils.cpp b/client/platforms/ios/MobileUtils.cpp index 3923d291..f94d56fc 100644 --- a/client/platforms/ios/MobileUtils.cpp +++ b/client/platforms/ios/MobileUtils.cpp @@ -1,5 +1,9 @@ #include "MobileUtils.h" -void MobileUtils::shareText(const QStringList&) {} - +void MobileUtils::shareText(const QStringList &) +{ +} +void MobileUtils::openFile() +{ +} diff --git a/client/ui/qml/Pages2/PageSetupWizardStart.qml b/client/ui/qml/Pages2/PageSetupWizardStart.qml index 2ce93e53..36d90bd8 100644 --- a/client/ui/qml/Pages2/PageSetupWizardStart.qml +++ b/client/ui/qml/Pages2/PageSetupWizardStart.qml @@ -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 {