Close AccountSwitchDialog when logging in a new connection

Otherwise, the dialog is still opened after login has finished
This commit is contained in:
Tobias Fella
2024-09-02 12:34:23 +02:00
parent 1157882f1b
commit 86b88c851f

View File

@@ -66,7 +66,7 @@ Kirigami.Dialog {
if (switchUserButton.checked) {
switchUserButton.checked = false;
}
accountView.currentIndex = Controller.activeConnectionIndex;
root.close();
}
Keys.onUpPressed: {
accountView.currentIndex = accountView.count - 1;