Make it possible to cancel "Add account" flow when an account already
exists
This commit is contained in:
@@ -57,9 +57,18 @@ Kirigami.ScrollablePage {
|
|||||||
Kirigami.FormData.label: i18n("Device Name (Optional)")
|
Kirigami.FormData.label: i18n("Device Name (Optional)")
|
||||||
onAccepted: doLogin()
|
onAccepted: doLogin()
|
||||||
}
|
}
|
||||||
QQC2.Button {
|
RowLayout {
|
||||||
text: i18n("Login")
|
QQC2.Button {
|
||||||
onClicked: doLogin()
|
visible: Controller.accountCount > 0
|
||||||
|
text: i18n("Cancel")
|
||||||
|
onClicked: {
|
||||||
|
pageStack.layers.clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
QQC2.Button {
|
||||||
|
text: i18n("Login")
|
||||||
|
onClicked: doLogin()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
|
|||||||
Reference in New Issue
Block a user