fix: support closing login window using native buttons

This commit is contained in:
Eric Mastro 2021-05-10 12:32:07 +10:00 committed by Iuri Matias
parent 29ac475385
commit 3deb75b2fe
1 changed files with 6 additions and 2 deletions

View File

@ -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;