From a4c5b9b3f32323974adfe2d2b459bb90bd7791f5 Mon Sep 17 00:00:00 2001 From: DenioD <41270280+DenioD@users.noreply.github.com> Date: Sat, 22 Aug 2020 09:47:07 +0200 Subject: [PATCH] hide seed and birthday while validate --- src/firsttimewizard.cpp | 6 +++++- src/mainwindow.cpp | 6 ++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/firsttimewizard.cpp b/src/firsttimewizard.cpp index 3f7ab90..7c5e82d 100644 --- a/src/firsttimewizard.cpp +++ b/src/firsttimewizard.cpp @@ -318,7 +318,9 @@ bool NewSeedPage::validatePage() { verifyseed.setupUi(&dialog); Settings::saveRestore(&dialog); - + form.birthday->setVisible(false); + form.txtSeed->setVisible(false); + QString seed = parent->getSeed(); QString birthday = parent->getBirthday(); @@ -616,6 +618,8 @@ bool NewSeedPage::validatePage() { QMessageBox::warning(this, tr("Wrong Seed"), tr("Please try again") + "\n" , QMessageBox::Ok); + form.birthday->setVisible(true); + form.txtSeed->setVisible(true); return false; this->validatePage(); } diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2a2fd3f..d89fae4 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -636,7 +636,7 @@ void MainWindow::removeWalletEncryptionStartUp() { QObject::connect(ed.new_restore, &QPushButton::clicked, [&] { - d.close(); + d.close(); QFile wallet(dirwallet); QFile walletenc(dirwalletenc); @@ -644,9 +644,7 @@ void MainWindow::removeWalletEncryptionStartUp() { walletenc.remove(); auto cl = new ConnectionLoader(this, rpc); - cl->loadConnection(); - - + cl->loadConnection(); }); if (d.exec() == QDialog::Accepted)