fix(app): fix minimising the app on close for Windows and Linux
Fixes #4128
This commit is contained in:
parent
14f75692c4
commit
1b08e21691
17
ui/main.qml
17
ui/main.qml
|
@ -96,8 +96,21 @@ StatusWindow {
|
|||
Connections {
|
||||
target: applicationWindow
|
||||
onClosing: {
|
||||
loader.sourceComponent = undefined
|
||||
close.accepted = true
|
||||
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