aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardCreateDevice1.qml
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-03-01 02:38:52 -0600
committerluigi1111 <luigi1111w@gmail.com>2019-03-01 02:38:52 -0600
commitcd9e1bf0ea64cf09d766559f391dc2cdc644323d (patch)
tree0bee20b7601b2d24541c9d0f0c1153331bf30ea1 /wizard/WizardCreateDevice1.qml
parent39b0fa18e199959a241d4a6431b62e64c50f301c (diff)
parentfc68567f23b2f754f3e54e73c00a6ca41558f923 (diff)
downloadmonzero-gui-cd9e1bf0ea64cf09d766559f391dc2cdc644323d.tar.gz
monzero-gui-cd9e1bf0ea64cf09d766559f391dc2cdc644323d.tar.xz
monzero-gui-cd9e1bf0ea64cf09d766559f391dc2cdc644323d.zip
Merge pull request #1989
fc68567 wizard: improve restore from device ui/ux (selsta)
Diffstat (limited to 'wizard/WizardCreateDevice1.qml')
-rw-r--r--wizard/WizardCreateDevice1.qml33
1 files changed, 33 insertions, 0 deletions
diff --git a/wizard/WizardCreateDevice1.qml b/wizard/WizardCreateDevice1.qml
index 060c4f12..f80b767d 100644
--- a/wizard/WizardCreateDevice1.qml
+++ b/wizard/WizardCreateDevice1.qml
@@ -79,6 +79,38 @@ Rectangle {
id: walletInput
}
+ ColumnLayout {
+ spacing: 0
+
+ Layout.topMargin: 10 * scaleRatio
+ Layout.fillWidth: true
+
+ MoneroComponents.RadioButton {
+ id: newDeviceWallet
+ text: qsTr("Create a new wallet from device.") + translationManager.emptyString
+ fontSize: 16 * scaleRatio
+ checked: true
+ onClicked: {
+ checked = true;
+ restoreDeviceWallet.checked = false;
+ wizardController.walletOptionsDeviceIsRestore = false;
+ }
+ }
+
+ MoneroComponents.RadioButton {
+ id: restoreDeviceWallet
+ Layout.topMargin: 10 * scaleRatio
+ text: qsTr("Restore a wallet from device. Use this if you used your hardware wallet before.") + translationManager.emptyString
+ fontSize: 16 * scaleRatio
+ checked: false
+ onClicked: {
+ checked = true;
+ newDeviceWallet.checked = false;
+ wizardController.walletOptionsDeviceIsRestore = true;
+ }
+ }
+ }
+
GridLayout {
Layout.topMargin: 10 * scaleRatio
Layout.fillWidth: true
@@ -88,6 +120,7 @@ Rectangle {
MoneroComponents.LineEdit {
id: restoreHeight
+ visible: !newDeviceWallet.checked
Layout.fillWidth: true
labelText: qsTr("Wallet creation date as `YYYY-MM-DD` or restore height") + translationManager.emptyString
labelFontSize: 14 * scaleRatio