Skip to content

Commit 580b74c

Browse files
Merge dashpay#6566: fix(qt): avoid leaking balance and CJ info in GUI when in discreet mode
21504ae fix: use proper units, show 0 rounds to reuse existing translation (UdjinM6) 5329b7d fix(qt): avoid leaking balance and CJ info in GUI when in discreet mode (UdjinM6) Pull request description: ## Issue being fixed or feature implemented develop: <img width="721" alt="Screenshot 2025-02-10 at 16 14 52" src="https://github.com/user-attachments/assets/742dc502-64c4-4c99-adb2-97009d387143" /> this PR: <img width="715" alt="Screenshot 2025-02-10 at 16 17 52" src="https://github.com/user-attachments/assets/854a8de9-2f5b-447b-b618-593ce8cf9225" /> ## What was done? ## How Has This Been Tested? ## Breaking Changes ## Checklist: - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [ ] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: PastaPastaPasta: utACK 21504ae knst: utACK 21504ae Tree-SHA512: 6ac57e171f256f322479644fced8e6223eeac2813bea3d1c1e4debdb9586e3e46265fa36b5f196256dbe470a5c32ef54753a3024722b3410d9eeafa5e378b97d
1 parent 30b9673 commit 580b74c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/qt/overviewpage.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ void OverviewPage::setPrivacy(bool privacy)
208208
m_privacy = privacy;
209209
if (m_balances.balance != -1) {
210210
setBalance(m_balances);
211+
coinJoinStatus(true);
211212
}
212213

213214
ui->listTransactions->setVisible(!m_privacy);
@@ -402,7 +403,10 @@ void OverviewPage::updateCoinJoinProgress()
402403

403404
if(nMaxToAnonymize == 0) return;
404405

405-
if (nMaxToAnonymize >= clientModel->coinJoinOptions().getAmount() * COIN) {
406+
if (m_privacy) {
407+
strAmountAndRounds = "#### " + BitcoinUnits::name(nDisplayUnit) + " / " + tr("%n Rounds", "", 0);
408+
ui->labelAmountRounds->setToolTip("");
409+
} else if (nMaxToAnonymize >= clientModel->coinJoinOptions().getAmount() * COIN) {
406410
ui->labelAmountRounds->setToolTip(tr("Found enough compatible inputs to mix %1")
407411
.arg(strCoinJoinAmount));
408412
strCoinJoinAmount = strCoinJoinAmount.remove(strCoinJoinAmount.indexOf("."), BitcoinUnits::decimals(nDisplayUnit) + 1);
@@ -660,7 +664,7 @@ void OverviewPage::coinJoinStatus(bool fForce)
660664

661665
setWidgetsVisible(true);
662666

663-
ui->labelSubmittedDenom->setText(QString(walletModel->coinJoin()->getSessionDenoms().c_str()));
667+
ui->labelSubmittedDenom->setText(m_privacy ? "####" : QString(walletModel->coinJoin()->getSessionDenoms().c_str()));
664668
}
665669

666670
void OverviewPage::toggleCoinJoin(){

0 commit comments

Comments
 (0)