Only close the settings window if there's no accounts left

This commit is contained in:
Joshua Goins
2023-08-19 17:23:06 -04:00
parent 7f5cfbf21c
commit f875a23e83

View File

@@ -85,7 +85,11 @@ Kirigami.ScrollablePage {
id: confirmLogoutDialogComponent
Dialog.ConfirmLogout {
connection: model.connection
onAccepted: page.Window.window.close()
onAccepted: {
if (Controller.accountCount === 1) {
page.Window.window.close()
}
}
}
}