This commit is contained in:
rating89us 2022-02-01 03:45:44 +01:00 committed by GitHub
commit 552a6ce139
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View file

@ -43,6 +43,7 @@ Rectangle {
color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardCreateDevice1"
property alias restoreDeviceWallet: restoreDeviceWallet
property var deviceName: deviceNameModel.get(deviceNameDropdown.currentIndex).column2
property var ledgerType: deviceName == "Ledger" ? deviceNameModel.get(deviceNameDropdown.currentIndex).column1 : null
@ -230,6 +231,8 @@ Rectangle {
btnNext.text: newDeviceWallet.checked ? qsTr("Create wallet") : qsTr("Restore wallet") + translationManager.emptyString
onPrevClicked: {
wizardStateView.state = "wizardHome";
//reset restoreDeviceWallet.checked, since wizardCreateWallet4 reads it
restoreDeviceWallet.checked = false;
}
onNextClicked: {
wizardController.walletOptionsName = walletInput.walletName.text;

View file

@ -58,14 +58,14 @@ Rectangle {
WizardHeader {
title: qsTr("You're all set up!") + translationManager.emptyString
subtitle: qsTr("New wallet details:") + translationManager.emptyString
subtitle: wizardStateView.wizardCreateDevice1View.restoreDeviceWallet.checked ? qsTr("Details of the wallet to be restored:") : qsTr("New wallet details:") + translationManager.emptyString
}
WizardSummary {}
WizardNav {
Layout.topMargin: 24
btnNextText: qsTr("Create wallet") + translationManager.emptyString
btnNextText: wizardStateView.wizardCreateDevice1View.restoreDeviceWallet.checked ? qsTr("Restore wallet") : qsTr("Create wallet") + translationManager.emptyString
progressSteps: appWindow.walletMode <= 1 ? 3 : 4
progress: appWindow.walletMode <= 1 ? 2 : 3
@ -82,6 +82,7 @@ Rectangle {
wizardController.writeWallet(function() {
wizardController.useMoneroClicked();
wizardController.walletOptionsIsRecoveringFromDevice = false;
wizardStateView.wizardCreateDevice1View.restoreDeviceWallet.checked = false;
});
}
}

View file

@ -58,14 +58,14 @@ Rectangle {
WizardHeader {
title: qsTr("You're all set up!") + translationManager.emptyString
subtitle: qsTr("New wallet details:") + translationManager.emptyString
subtitle: qsTr("Details of the wallet to be restored:") + translationManager.emptyString
}
WizardSummary {}
WizardNav {
Layout.topMargin: 24
btnNextText: qsTr("Create wallet") + translationManager.emptyString
btnNextText: qsTr("Restore wallet") + translationManager.emptyString
progressSteps: appWindow.walletMode <= 1 ? 3 : 4
progress: appWindow.walletMode <= 1 ? 2 : 3