From 5ddf31a58b2f1c7302c203dea66e549684cfca9a Mon Sep 17 00:00:00 2001 From: tobtoht Date: Mon, 7 Oct 2024 17:44:01 +0200 Subject: [PATCH] mainwindow: fix hide balance if fiat is enabled --- src/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 1be5eb8..f852263 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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));