From ac231320a33b35ec35997b2f5af1f8e2e37a42f4 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Thu, 5 Oct 2023 22:33:17 +0200 Subject: [PATCH] Fix closing the login dialog --- src/qml/Loading.qml | 5 ++++- src/qml/WelcomePage.qml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/qml/Loading.qml b/src/qml/Loading.qml index 014e1bdb8..159f9e091 100644 --- a/src/qml/Loading.qml +++ b/src/qml/Loading.qml @@ -11,6 +11,9 @@ import org.kde.neochat LoginStep { id: root + + signal closeDialog + FormCard.FormTextDelegate { text: i18n("Please wait. This might take a little while.") } @@ -22,7 +25,7 @@ LoginStep { Connections { target: Controller function onInitiated() { - closeDialog() + root.closeDialog() } } } diff --git a/src/qml/WelcomePage.qml b/src/qml/WelcomePage.qml index 96b363dcd..230b24feb 100644 --- a/src/qml/WelcomePage.qml +++ b/src/qml/WelcomePage.qml @@ -77,6 +77,9 @@ FormCard.FormCardPage { headerMessage.text = ""; headerMessage.visible = false; } + function onCloseDialog() { + root.closeDialog(); + } } Connections { target: Registration