Browse Source

hide seed and birthday while validate

pull/188/head
DenioD 4 years ago
parent
commit
a4c5b9b3f3
  1. 6
      src/firsttimewizard.cpp
  2. 6
      src/mainwindow.cpp

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

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

Loading…
Cancel
Save