From 70d42ee328624a182f5d8d36cbd697bdca5aee6e Mon Sep 17 00:00:00 2001 From: stoffu Date: Sun, 25 Feb 2018 21:52:04 +0900 Subject: [PATCH] Wizard: allow seed without checksum --- wizard/WizardManageWalletUI.qml | 2 +- wizard/WizardMemoTextInput.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wizard/WizardManageWalletUI.qml b/wizard/WizardManageWalletUI.qml index 7c9fa536..7d2c789b 100644 --- a/wizard/WizardManageWalletUI.qml +++ b/wizard/WizardManageWalletUI.qml @@ -83,7 +83,7 @@ ColumnLayout { function checkSeed() { console.log("Checking seed") var wordsArray = Utils.lineBreaksToSpaces(uiItem.wordsTextItem.memoText).split(" "); - return wordsArray.length === 25 + return wordsArray.length === 25 || wordsArray.length === 24 } function updateFromQrCode(address, payment_id, amount, tx_description, recipient_name, extra_parameters) { diff --git a/wizard/WizardMemoTextInput.qml b/wizard/WizardMemoTextInput.qml index d278508e..9611977d 100644 --- a/wizard/WizardMemoTextInput.qml +++ b/wizard/WizardMemoTextInput.qml @@ -41,7 +41,7 @@ Column { font.pixelSize: 16 * scaleRatio anchors.margins: 8 * scaleRatio font.bold:true - text: qsTr("Enter your 25 word mnemonic seed") + translationManager.emptyString + text: qsTr("Enter your 25 (or 24) word mnemonic seed") + translationManager.emptyString color: "#BABABA" visible: !memoTextInput.text/* && !parent.focus*/ }