]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
mainwindow: fix hide balance if fiat is enabled
authortobtoht <tob@featherwallet.org>
Mon, 7 Oct 2024 15:44:01 +0000 (17:44 +0200)
committertobtoht <tob@featherwallet.org>
Mon, 7 Oct 2024 15:44:01 +0000 (17:44 +0200)
src/MainWindow.cpp

index 1be5eb8b5c3dca402dc8d73b46461fd8b1601d20..f852263ccbb3692338450a813d89876702450b64 100644 (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));