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