fix: support closing login window using native buttons
This commit is contained in:
parent
29ac475385
commit
3deb75b2fe
|
@ -86,7 +86,11 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
onClosing: {
|
onClosing: {
|
||||||
if(loader.sourceComponent == app){
|
if (loader.sourceComponent == login) {
|
||||||
|
applicationWindow.visible = false;
|
||||||
|
close.accepted = false;
|
||||||
|
}
|
||||||
|
else if (loader.sourceComponent == app) {
|
||||||
if (loader.item.appSettings.quitOnClose) {
|
if (loader.item.appSettings.quitOnClose) {
|
||||||
Qt.quit();
|
Qt.quit();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue