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 {
target: applicationWindow
onClosing: {
if (loader.sourceComponent == login) {
applicationWindow.visible = false
close.accepted = false
}
else if (loader.sourceComponent == app) {
if (appSettings.quitOnClose) {
close.accepted = true
} else {
applicationWindow.visible = false
close.accepted = false
}
}
loader.sourceComponent = undefined
close.accepted = true
}
onActiveChanged: {