delete startup window

This commit is contained in:
DenioD
2020-06-18 22:56:59 +02:00
parent b6d4d9bb32
commit a2351f6ab1
2 changed files with 4 additions and 25 deletions

View File

@@ -576,34 +576,15 @@ void MainWindow::removeWalletEncryptionStartUp() {
auto dirHome = QDir(QStandardPaths::writableLocation(QStandardPaths::HomeLocation));
QFile wallet(dirwallet);
if (wallet.size() > 0)
if (wallet.size() == 0)
{
if (fileExists(dirwalletbackup))
{
QMessageBox::information(this, tr("You still have plaintext data on your disk!"),
QString("WARNING: Delete it only if you have a backup of your Wallet Seed."),
QMessageBox::Ok
);
// backup.remove();
}
QMessageBox::information(this, tr("Wallet Encryption Success"),
QString("SDL is ready to Rock"),
QMessageBox::Ok
);
}else{
QMessageBox::critical(this, tr("Wallet Encryption Failed"),
QString("false password please try again"),
QMessageBox::Ok
);
this->removeWalletEncryptionStartUp();
}
}else{}
}else{