|
|
@ -1,4 +1,4 @@ |
|
|
|
// Copyright 2019-2021 The Hush Developers
|
|
|
|
// Copyright 2019-2021 The Hush Developers
|
|
|
|
// Released under the GPLv3
|
|
|
|
#include "mainwindow.h" |
|
|
|
#include "addressbook.h" |
|
|
@ -466,19 +466,24 @@ void MainWindow::setupSettingsModal() { |
|
|
|
settings.lblTor->setToolTip(tooltip); |
|
|
|
} |
|
|
|
|
|
|
|
//Use Consolidation
|
|
|
|
bool isUsingConsolidation = false; |
|
|
|
int size = 0; |
|
|
|
qDebug() << __func__ << ": hushDir=" << rpc->getConnection()->config->hushDir; |
|
|
|
|
|
|
|
QDir hushdir(rpc->getConnection()->config->hushDir); |
|
|
|
QFile WalletSize(hushdir.filePath("wallet.dat")); |
|
|
|
if (WalletSize.open(QIODevice::ReadOnly)){ |
|
|
|
size = WalletSize.size() / 1000000; //when file does open.
|
|
|
|
//QString size1 = QString::number(size) ;
|
|
|
|
settings.WalletSize->setText(QString::number(size)); |
|
|
|
WalletSize.close(); |
|
|
|
// Wallet Size
|
|
|
|
if (rpc->getConnection() != nullptr) { |
|
|
|
int size = 0; |
|
|
|
qDebug() << __func__ << ": settings hushDir=" << rpc->getConnection()->config->hushDir; |
|
|
|
|
|
|
|
QDir hushdir(rpc->getConnection()->config->hushDir); |
|
|
|
QFile WalletSize(hushdir.filePath("wallet.dat")); |
|
|
|
|
|
|
|
if (WalletSize.open(QIODevice::ReadOnly)){ |
|
|
|
size = WalletSize.size() / 1000000; //when file does open.
|
|
|
|
//QString size1 = QString::number(size) ;
|
|
|
|
settings.WalletSize->setText(QString::number(size)); |
|
|
|
WalletSize.close(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// Use Consolidation
|
|
|
|
bool isUsingConsolidation = false; |
|
|
|
if (rpc->getConnection() != nullptr) { |
|
|
|
isUsingConsolidation = !rpc->getConnection()->config->consolidation.isEmpty() == true; |
|
|
|
} |
|
|
@ -487,8 +492,7 @@ void MainWindow::setupSettingsModal() { |
|
|
|
settings.chkConso->setEnabled(false); |
|
|
|
} |
|
|
|
|
|
|
|
//Use Deletetx
|
|
|
|
|
|
|
|
// Use Deletetx
|
|
|
|
bool isUsingDeletetx = false; |
|
|
|
if (rpc->getConnection() != nullptr) { |
|
|
|
isUsingDeletetx = !rpc->getConnection()->config->deletetx.isEmpty() == true; |
|
|
@ -498,8 +502,7 @@ void MainWindow::setupSettingsModal() { |
|
|
|
settings.chkDeletetx->setEnabled(false); |
|
|
|
} |
|
|
|
|
|
|
|
//Use Zindex
|
|
|
|
|
|
|
|
// Use Zindex
|
|
|
|
bool isUsingZindex = false; |
|
|
|
if (rpc->getConnection() != nullptr) { |
|
|
|
isUsingZindex = !rpc->getConnection()->config->zindex.isEmpty() == true; |
|
|
@ -1617,6 +1620,7 @@ void MainWindow::setupTransactionsTab() { |
|
|
|
QString memo = txModel->getMemo(index.row()); |
|
|
|
|
|
|
|
if (!memo.isEmpty()) { |
|
|
|
/* TODO: Add reply button/functionality */ |
|
|
|
QMessageBox mb(QMessageBox::Information, tr("Memo"), memo, QMessageBox::Ok, this); |
|
|
|
mb.setTextFormat(Qt::PlainText); |
|
|
|
mb.setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard); |
|
|
|