From 9e10a4846494dcca96340410eede2e0ba13ce071 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 26 Jul 2021 11:39:17 -0400 Subject: [PATCH] ui for supporting rescanheight, requires backend changes --- src/mainwindow.cpp | 8 +++----- src/privkey.ui | 21 +++++++++++++++++++-- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 150da2f..f01f919 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -947,8 +947,8 @@ void MainWindow::donate() { } rpc->importTPrivKey(key, [=] (auto) { this->doImport(keys); }); }else{ - QMessageBox::critical(this, tr("Wrong Privatkey format"), - tr("Privatkey should start with 5, K, L or U (for taddr) or secret- (for zaddr)") + "\n"); + QMessageBox::critical(this, tr("Wrong Private key format"), + tr("Private key should start with 5, K, L or U (for taddr) or secret- (for zaddr)") + "\n"); return; } } @@ -1097,9 +1097,7 @@ void MainWindow::payhushURI(QString uri, QString myAddr) { }); }else if ((pui.rescan->isChecked() == true) && (pui.privKeyTxt->toPlainText().startsWith("secret"))){ - - // Show the dialog that keys will be imported. - + // Show the dialog that keys will be imported. QMessageBox::information(this, "Imported", tr("The keys were imported. It may take several minutes to rescan the blockchain. Until then, functionality may be limited"), QMessageBox::Ok); diff --git a/src/privkey.ui b/src/privkey.ui index 748f41d..d708fdb 100644 --- a/src/privkey.ui +++ b/src/privkey.ui @@ -28,7 +28,7 @@ - + Qt::Horizontal @@ -38,7 +38,24 @@ - + + + + + 1 + + + + + + + + Rescan Height (Birthday Block) + + + + + Rescan Wallet