From af1e7c7174337d7bcd3c46c297840f9f590de19d Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Fri, 25 Mar 2022 12:54:27 +0300 Subject: [PATCH] fix(main): Close app on onboarding step Closes: #5170 --- ui/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/main.qml b/ui/main.qml index 164ebef088..8fe2209a14 100644 --- a/ui/main.qml +++ b/ui/main.qml @@ -136,7 +136,7 @@ StatusWindow { loader.sourceComponent = undefined close.accepted = true } else { - if (loader.sourceComponent == login) { + if (loader.sourceComponent != app) { Qt.quit(); } else if (loader.sourceComponent == app) { @@ -338,7 +338,7 @@ StatusWindow { visible: Qt.platform.os === "osx" && !applicationWindow.isFullScreen onClose: { - if (loader.sourceComponent == login) { + if (loader.sourceComponent != app) { Qt.quit(); } else if (loader.sourceComponent == app) {