fix(@desktop/general): fix the scenarios for closing the app on Mac (minimise on close On / Off)

Fixes: #3378
This commit is contained in:
Sale Djenic 2021-09-20 17:13:23 +02:00 committed by Iuri Matias
parent 361c902f37
commit c392a473b9
1 changed files with 2 additions and 12 deletions

View File

@ -159,18 +159,8 @@ StatusWindow {
Connections { Connections {
target: applicationWindow target: applicationWindow
onClosing: { onClosing: {
if (loader.sourceComponent == login) { loader.sourceComponent = undefined
applicationWindow.visible = false
close.accepted = false
}
else if (loader.sourceComponent == app) {
if (appSettings.quitOnClose) {
close.accepted = true close.accepted = true
} else {
applicationWindow.visible = false
close.accepted = false
}
}
} }
onActiveChanged: { onActiveChanged: {