From e2aef1fc1d08c7a145de233e82791d6526d36ef5 Mon Sep 17 00:00:00 2001 From: "vladimir.kuznetsov" Date: Wed, 13 Sep 2023 11:09:29 +0500 Subject: [PATCH] fixed display of installation errors on the initial installation screen --- client/ui/qml/Pages2/PageSetupWizardStart.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/client/ui/qml/Pages2/PageSetupWizardStart.qml b/client/ui/qml/Pages2/PageSetupWizardStart.qml index 36d90bd8..9f5e57a5 100644 --- a/client/ui/qml/Pages2/PageSetupWizardStart.qml +++ b/client/ui/qml/Pages2/PageSetupWizardStart.qml @@ -56,6 +56,20 @@ PageType { } } + Connections { + target: InstallController + + function onInstallationErrorOccurred(errorMessage) { + PageController.showErrorMessage(errorMessage) + + var currentPageName = tabBarStackView.currentItem.objectName + + if (currentPageName === PageController.getPagePath(PageEnum.PageSetupWizardInstalling)) { + PageController.closePage() + } + } + } + FlickableType { id: fl anchors.top: parent.top