fix(@desktop/general): fix the scenarios for closing the app on Mac (minimise on close On / Off)
Fixes: #3378
This commit is contained in:
parent
361c902f37
commit
c392a473b9
12
ui/main.qml
12
ui/main.qml
|
@ -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) {
|
||||
loader.sourceComponent = undefined
|
||||
close.accepted = true
|
||||
} else {
|
||||
applicationWindow.visible = false
|
||||
close.accepted = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onActiveChanged: {
|
||||
|
|
Loading…
Reference in New Issue