Skip to content

Commit

Permalink
WizardRestoreWallet4, WizardCreateWallet4: reword header subtitle; re…
Browse files Browse the repository at this point in the history
…name "Create wallet" button to "Restore wallet"
  • Loading branch information
rating89us committed Jan 17, 2022
1 parent a959919 commit 03e87a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions wizard/WizardCreateDevice1.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -225,6 +226,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;
Expand Down
5 changes: 3 additions & 2 deletions wizard/WizardCreateWallet4.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -82,6 +82,7 @@ Rectangle {
wizardController.writeWallet(function() {
wizardController.useMoneroClicked();
wizardController.walletOptionsIsRecoveringFromDevice = false;
wizardStateView.wizardCreateDevice1View.restoreDeviceWallet.checked = false;
});
}
}
Expand Down
4 changes: 2 additions & 2 deletions wizard/WizardRestoreWallet4.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 03e87a4

Please sign in to comment.