Only close the settings window if there's no accounts left
This commit is contained in:
@@ -85,7 +85,11 @@ Kirigami.ScrollablePage {
|
|||||||
id: confirmLogoutDialogComponent
|
id: confirmLogoutDialogComponent
|
||||||
Dialog.ConfirmLogout {
|
Dialog.ConfirmLogout {
|
||||||
connection: model.connection
|
connection: model.connection
|
||||||
onAccepted: page.Window.window.close()
|
onAccepted: {
|
||||||
|
if (Controller.accountCount === 1) {
|
||||||
|
page.Window.window.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user