fix(main): Close app on onboarding step

Closes: #5170
This commit is contained in:
Boris Melnik 2022-03-25 12:54:27 +03:00 committed by Iuri Matias
parent 38031aba83
commit af1e7c7174
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ StatusWindow {
loader.sourceComponent = undefined loader.sourceComponent = undefined
close.accepted = true close.accepted = true
} else { } else {
if (loader.sourceComponent == login) { if (loader.sourceComponent != app) {
Qt.quit(); Qt.quit();
} }
else if (loader.sourceComponent == app) { else if (loader.sourceComponent == app) {
@ -338,7 +338,7 @@ StatusWindow {
visible: Qt.platform.os === "osx" && !applicationWindow.isFullScreen visible: Qt.platform.os === "osx" && !applicationWindow.isFullScreen
onClose: { onClose: {
if (loader.sourceComponent == login) { if (loader.sourceComponent != app) {
Qt.quit(); Qt.quit();
} }
else if (loader.sourceComponent == app) { else if (loader.sourceComponent == app) {