Allow deleting local sent Tx history

This commit is contained in:
Aditya Kulkarni
2018-10-23 16:04:46 -07:00
parent 28296ec583
commit 9694ab7439
5 changed files with 28 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
#include "balancestablemodel.h"
#include "settings.h"
#include "utils.h"
#include "senttxstore.h"
#include "precompiled.h"
@@ -49,6 +50,14 @@ MainWindow::MainWindow(QWidget *parent) :
aboutDialog.exec();
});
// Set up delete sent history action
QObject::connect(ui->actionDelete_Sent_History, &QAction::triggered, [=] () {
bool confirm = QMessageBox::information(this, "Delete Sent History?",
"Shielded z-Address sent transactions are stored locally in your wallet. You may delete this saved information safely any time for your privacy.\nDo you want to delete this now?",
QMessageBox::Yes, QMessageBox::No);
if (confirm) SentTxStore::deleteHistory();
});
// Initialize to the balances tab
ui->tabWidget->setCurrentIndex(0);