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: { onClosing: {
if(loader.sourceComponent == app){ if (loader.sourceComponent == login) {
if(loader.item.appSettings.quitOnClose){ applicationWindow.visible = false;
close.accepted = false;
}
else if (loader.sourceComponent == app) {
if (loader.item.appSettings.quitOnClose) {
Qt.quit(); Qt.quit();
} else { } else {
applicationWindow.visible = false; applicationWindow.visible = false;