mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 06:47:01 +00:00
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…
x
Reference in New Issue
Block a user