Skip to content

Commit 9f103fb

Browse files
kwvgUdjinM6
andcommitted
fix: hide the entire transaction widget if discreet mode is enabled
Currently the label moves downward when discreet mode is enabled, which is a bit visually jarring. We're better off hiding it wholesale. Co-Authored-By: UdjinM6 <UdjinM6@users.noreply.github.com>
1 parent e9b347f commit 9f103fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qt/overviewpage.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ void OverviewPage::setPrivacy(bool privacy)
211211
coinJoinStatus(true);
212212
}
213213

214+
// We can't hide the frame itself as it would disturb alignment, hide inner elements instead
214215
ui->listTransactions->setVisible(!m_privacy);
216+
ui->label_4->setVisible(!m_privacy);
217+
ui->labelTransactionsStatus->setVisible(!m_privacy && ui->labelWalletStatus->isVisible());
215218

216219
const QString status_tip = m_privacy ? tr("Discreet mode activated for the Overview tab. To unmask the values, uncheck Settings->Discreet mode.") : "";
217220
setStatusTip(status_tip);

0 commit comments

Comments
 (0)