fix(app): fix minimising the app on close for Windows and Linux
Fixes #4128
This commit is contained in:
parent
14f75692c4
commit
1b08e21691
13
ui/main.qml
13
ui/main.qml
|
@ -96,8 +96,21 @@ StatusWindow {
|
|||
Connections {
|
||||
target: applicationWindow
|
||||
onClosing: {
|
||||
if (Qt.platform.os === "osx") {
|
||||
loader.sourceComponent = undefined
|
||||
close.accepted = true
|
||||
} else {
|
||||
if (loader.sourceComponent == login) {
|
||||
Qt.quit();
|
||||
}
|
||||
else if (loader.sourceComponent == app) {
|
||||
if (localAccountSensitiveSettings.quitOnClose) {
|
||||
Qt.quit();
|
||||
} else {
|
||||
applicationWindow.visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onActiveChanged: {
|
||||
|
|
Loading…
Reference in New Issue