From ba1b174d7e39e6b7f29c6493e7dcee777fa8ad38 Mon Sep 17 00:00:00 2001 From: DenioD <41270280+DenioD@users.noreply.github.com> Date: Mon, 27 Jul 2020 11:46:34 +0200 Subject: [PATCH] show the birthday of the seed at creation --- src/firsttimewizard.cpp | 10 ++++----- src/newseed.ui | 48 +++++++++++++++++++++++++++++++++++------ 2 files changed, 45 insertions(+), 13 deletions(-) diff --git a/src/firsttimewizard.cpp b/src/firsttimewizard.cpp index c08b8a0..6b79eba 100644 --- a/src/firsttimewizard.cpp +++ b/src/firsttimewizard.cpp @@ -125,13 +125,9 @@ NewOrRestorePage::NewOrRestorePage(FirstTimeWizard *parent) : QWizardPage(parent /* out of memory */ } QString passphraseHash1 = QByteArray(reinterpret_cast(key), KEY_LEN).toHex(); - DataStore::getChatDataStore()->setPassword(passphraseHash1); - //main->setPassword(Password); - - //qDebug()<<"Objekt gesetzt"; - + DataStore::getChatDataStore()->setPassword(passphraseHash1); - // Exclusive buttons + // Exclusive buttons QObject::connect(form.radioNewWallet, &QRadioButton::clicked, [=](bool checked) { if (checked) { form.radioRestoreWallet->setChecked(false); @@ -201,8 +197,10 @@ void NewSeedPage::initializePage() { if (parsed.is_discarded() || parsed.is_null() || parsed.find("seed") == parsed.end()) { form.txtSeed->setPlainText(tr("Error creating a wallet") + "\n" + reply); } else { + QString birthday = QString::number(parsed["birthday"].get()); QString seed = QString::fromStdString(parsed["seed"].get()); form.txtSeed->setPlainText(seed); + form.birthday->setPlainText(birthday); } diff --git a/src/newseed.ui b/src/newseed.ui index 7657542..ccc32da 100644 --- a/src/newseed.ui +++ b/src/newseed.ui @@ -6,15 +6,15 @@ 0 0 - 427 - 416 + 432 + 516 Form - + This is your new wallet's seed phrase. PLEASE BACK IT UP SECURELY. @@ -24,7 +24,17 @@ - + + + + The seed phrase is the only way to restore the wallet. If you forget the seed phrase, THERE IS NO WAY TO RESTORE YOUR WALLET AND THE FUNDS in it + + + true + + + + @@ -46,16 +56,40 @@ - - + + - The seed phrase is the only way to restore the wallet. If you forget the seed phrase, THERE IS NO WAY TO RESTORE YOUR WALLET AND THE FUNDS in it + <html><head/><body><p><span style=" font-weight:600; text-decoration: underline;">This is the birthday of your Seed. Please back it up too</span></p></body></html> true + + + + + + Birthday of the Seed : + + + + + + + + 16777215 + 30 + + + + true + + + + +