Make it possible to cancel "Add account" flow when an account already

exists
This commit is contained in:
Carl Schwan
2020-11-22 23:10:06 +01:00
parent 06d1be146e
commit 50ffda05d2

View File

@@ -57,9 +57,18 @@ Kirigami.ScrollablePage {
Kirigami.FormData.label: i18n("Device Name (Optional)")
onAccepted: doLogin()
}
QQC2.Button {
text: i18n("Login")
onClicked: doLogin()
RowLayout {
QQC2.Button {
visible: Controller.accountCount > 0
text: i18n("Cancel")
onClicked: {
pageStack.layers.clear();
}
}
QQC2.Button {
text: i18n("Login")
onClicked: doLogin()
}
}
Connections {