mainwindow: fix hide balance if fiat is enabled

This commit is contained in:
tobtoht 2024-10-07 17:44:01 +02:00
parent e721e74b6e
commit 5ddf31a58b
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -615,7 +615,7 @@ void MainWindow::onBalanceUpdated(quint64 balance, quint64 spendable) {
}
}
if (conf()->get(Config::balanceShowFiat).toBool()) {
if (conf()->get(Config::balanceShowFiat).toBool() && !hide) {
QString fiatCurrency = conf()->get(Config::preferredFiatCurrency).toString();
double balanceFiatAmount = appData()->prices.convert("XMR", fiatCurrency, balance / constants::cdiv);
balance_str += QString(" (%1)").arg(Utils::amountToCurrencyString(balanceFiatAmount, fiatCurrency));