delete startup window
This commit is contained in:
@@ -57,11 +57,9 @@ NewOrRestorePage::NewOrRestorePage(FirstTimeWizard *parent) : QWizardPage(parent
|
||||
|
||||
QGraphicsScene* scene = new QGraphicsScene();
|
||||
QGraphicsView* view = new QGraphicsView(scene);
|
||||
// QPixmap pixmap(":/icons/res/hush-passion.png");
|
||||
form.Logo->setScene(scene);
|
||||
QPixmap pixmap(":/icons/res/dark-01.png");
|
||||
// QGraphicsPixmapItem* item = new QGraphicsPixmapItem(pixmap));
|
||||
scene->addPixmap(pixmap);
|
||||
scene->addPixmap(pixmap);
|
||||
form.Logo->show();
|
||||
|
||||
|
||||
|
||||
@@ -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{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user