mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
WizardRestoreWallet4, WizardCreateWallet4: reword header subtitle; rename "Create wallet" button to "Restore wallet"
This commit is contained in:
parent
a959919b8a
commit
03e87a4bdd
3 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue