diff options
| author | selsta <selsta@sent.at> | 2019-03-01 08:20:05 +0100 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2019-03-01 08:37:35 +0100 |
| commit | fc68567f23b2f754f3e54e73c00a6ca41558f923 (patch) | |
| tree | 4e19a04620d11b5653d06ae73c1084f1fa9127dd /wizard/WizardController.qml | |
| parent | f7ac041b4e21ad6c23f1d6c800b520e5f3512294 (diff) | |
| download | monzero-gui-fc68567f23b2f754f3e54e73c00a6ca41558f923.tar.gz monzero-gui-fc68567f23b2f754f3e54e73c00a6ca41558f923.tar.xz monzero-gui-fc68567f23b2f754f3e54e73c00a6ca41558f923.zip | |
wizard: improve restore from device ui/ux
Diffstat (limited to 'wizard/WizardController.qml')
| -rw-r--r-- | wizard/WizardController.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wizard/WizardController.qml b/wizard/WizardController.qml index c57ff042..4224e904 100644 --- a/wizard/WizardController.qml +++ b/wizard/WizardController.qml @@ -60,6 +60,7 @@ Rectangle { wizardController.walletOptionsIsRecovering = false; wizardController.walletOptionsIsRecoveringFromDevice = false; wizardController.walletOptionsDeviceName = ''; + wizardController.walletOptionsDeviceIsRestore = false; wizardController.tmpWalletFilename = ''; wizardController.walletRestoreMode = 'seed' wizardController.walletOptionsSubaddressLookahead = ''; @@ -89,6 +90,7 @@ Rectangle { property bool walletOptionsIsRecoveringFromDevice: false property string walletOptionsSubaddressLookahead: '' property string walletOptionsDeviceName: '' + property bool walletOptionsDeviceIsRestore: false property string tmpWalletFilename: '' property var remoteNodes: '' @@ -388,7 +390,10 @@ Rectangle { wizardController.m_wallet = wallet; wizardController.walletOptionsIsRecoveringFromDevice = true; wizardController.tmpWalletFilename = tmp_wallet_filename; - wizardController.walletOptionsRestoreHeight = wizardController.m_wallet.walletCreationHeight; + if (!wizardController.walletOptionsDeviceIsRestore) { + // User creates a hardware wallet for the first time. Use a recent block height from API. + wizardController.walletOptionsRestoreHeight = wizardController.m_wallet.walletCreationHeight; + } } else { console.log(wallet.errorString) appWindow.showStatusMessage(qsTr(wallet.errorString), 5); |
