diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2021-06-15 13:44:47 +0200 |
|---|---|---|
| committer | rating89us <rating89us@rating89us.com> | 2021-06-15 16:34:07 +0200 |
| commit | dfe8146f5c48b8ea67c417b9e2b406c1ef80a3a7 (patch) | |
| tree | 912eaef9d321657bc1b019aee4f0af8aa06cf7ea /pages/settings | |
| parent | 7c379e2cdaafc0cd618dbaab466625aa76c918bf (diff) | |
| download | monzero-gui-dfe8146f5c48b8ea67c417b9e2b406c1ef80a3a7.tar.gz monzero-gui-dfe8146f5c48b8ea67c417b9e2b406c1ef80a3a7.tar.xz monzero-gui-dfe8146f5c48b8ea67c417b9e2b406c1ef80a3a7.zip | |
SettingsInfo, WizardRestoreWallet1, WizardCreateDevice1: Correct restore height date when typed in wrong format
Diffstat (limited to 'pages/settings')
| -rw-r--r-- | pages/settings/SettingsInfo.qml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pages/settings/SettingsInfo.qml b/pages/settings/SettingsInfo.qml index 77342ec0..eac48b07 100644 --- a/pages/settings/SettingsInfo.qml +++ b/pages/settings/SettingsInfo.qml @@ -189,13 +189,7 @@ Rectangle { inputDialog.onAcceptedCallback = function() { var _restoreHeight; if (inputDialog.inputText) { - var restoreHeightText = inputDialog.inputText; - // Parse date string or restore height as integer - if(restoreHeightText.indexOf('-') === 4 && restoreHeightText.length === 10) { - _restoreHeight = Wizard.getApproximateBlockchainHeight(restoreHeightText, Utils.netTypeToString()); - } else { - _restoreHeight = parseInt(restoreHeightText) - } + _restoreHeight = Utils.parseDateStringOrRestoreHeightAsInteger(inputDialog.inputText); } if (!isNaN(_restoreHeight)) { if(_restoreHeight >= 0) { |
