mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-22 03:28:52 +00:00
fix: support closing login window using native buttons
This commit is contained in:
parent
29ac475385
commit
3deb75b2fe
@ -86,8 +86,12 @@ ApplicationWindow {
|
||||
}
|
||||
|
||||
onClosing: {
|
||||
if(loader.sourceComponent == app){
|
||||
if(loader.item.appSettings.quitOnClose){
|
||||
if (loader.sourceComponent == login) {
|
||||
applicationWindow.visible = false;
|
||||
close.accepted = false;
|
||||
}
|
||||
else if (loader.sourceComponent == app) {
|
||||
if (loader.item.appSettings.quitOnClose) {
|
||||
Qt.quit();
|
||||
} else {
|
||||
applicationWindow.visible = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user