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
14
ui/main.qml
14
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) {
|
||||
close.accepted = true
|
||||
} else {
|
||||
applicationWindow.visible = false
|
||||
close.accepted = false
|
||||
}
|
||||
}
|
||||
loader.sourceComponent = undefined
|
||||
close.accepted = true
|
||||
}
|
||||
|
||||
onActiveChanged: {
|
||||
|
|
Loading…
Reference in New Issue