Move the sign out button outside the editor, and close the dialog

This commit is contained in:
Joshua Goins
2023-08-19 17:20:33 -04:00
parent f7c7643c1c
commit 7f5cfbf21c
3 changed files with 22 additions and 24 deletions

View File

@@ -249,28 +249,6 @@ Kirigami.ScrollablePage {
}*/
}
}
MobileForm.FormHeader {
Layout.fillWidth: true
title: i18n("Sign out")
}
MobileForm.FormCard {
Layout.fillWidth: true
contentItem: ColumnLayout {
spacing: 0
MobileForm.FormButtonDelegate {
Layout.fillWidth: true
text: i18n("Sign out")
onClicked: {
Controller.logout(root.connection, true);
root.closeDialog();
if (Controller.accountCount === 1) {
pageStack.layers.pop();
}
}
}
}
}
}
Component {
id: openFileDialog