hide seed and birthday while validate

This commit is contained in:
DenioD
2020-08-22 09:47:07 +02:00
parent 2ae92a8434
commit a4c5b9b3f3
2 changed files with 7 additions and 5 deletions

View File

@@ -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();
}

View File

@@ -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)