Don't use CPrivateSendClientOptions

Signed-off-by: pasta <pasta@dashboost.org>
This commit is contained in:
pasta 2020-09-24 02:18:05 -04:00
parent f7c683844c
commit 229ea48a5a
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984
4 changed files with 4 additions and 4 deletions

View File

@ -1149,7 +1149,7 @@ void BitcoinGUI::updateProgressBarVisibility()
void BitcoinGUI::updatePrivateSendVisibility()
{
#ifdef ENABLE_WALLET
bool fEnabled = CPrivateSendClientOptions::IsEnabled();
bool fEnabled = privateSendClient.fEnablePrivateSend;
#else
bool fEnabled = false;
#endif

View File

@ -700,7 +700,7 @@ void CoinControlDialog::updateView()
ui->radioTreeMode->setVisible(fNormalMode);
ui->radioListMode->setVisible(fNormalMode);
if (!CPrivateSendClientOptions::IsEnabled()) {
if (!privateSendClient.fEnablePrivateSend) {
fHideAdditional = false;
ui->hideButton->setVisible(false);
}

View File

@ -399,7 +399,7 @@ void OptionsDialog::updateDefaultProxyNets()
void OptionsDialog::updatePrivateSendVisibility()
{
#ifdef ENABLE_WALLET
bool fEnabled = CPrivateSendClientOptions::IsEnabled();
bool fEnabled = privateSendClient.fEnablePrivateSend;
#else
bool fEnabled = false;
#endif

View File

@ -710,7 +710,7 @@ void TransactionView::updateWatchOnlyColumn(bool fHaveWatchOnly)
void TransactionView::updatePrivateSendVisibility()
{
bool fEnabled = CPrivateSendClientOptions::IsEnabled();
bool fEnabled = privateSendClient.fEnablePrivateSend;
// If PrivateSend gets enabled use "All" else "Most common"
typeWidget->setCurrentIndex(fEnabled ? 0 : 1);
// Hide all PrivateSend related filters