From f875a23e83e5c795c7ff0654b2baad2861e8cd92 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 19 Aug 2023 17:23:06 -0400 Subject: [PATCH] Only close the settings window if there's no accounts left --- src/qml/Settings/AccountsPage.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/qml/Settings/AccountsPage.qml b/src/qml/Settings/AccountsPage.qml index 63cae1879..a7a2bd9b8 100644 --- a/src/qml/Settings/AccountsPage.qml +++ b/src/qml/Settings/AccountsPage.qml @@ -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() + } + } } }