Clear UI if connection is lost

This commit is contained in:
adityapk00
2018-11-10 12:09:52 -08:00
parent 3b43a57f35
commit 0111d0a404
7 changed files with 56 additions and 33 deletions

View File

@@ -103,8 +103,8 @@ double Settings::getZECPrice() {
}
QString Settings::getUSDFormat(double bal) {
if (!isTestnet() && getZECPrice() > 0)
return "$" + QLocale(QLocale::English).toString(bal * getZECPrice(), 'f', 2);
if (!Settings::getInstance()->isTestnet() && Settings::getInstance()->getZECPrice() > 0)
return "$" + QLocale(QLocale::English).toString(bal * Settings::getInstance()->getZECPrice(), 'f', 2);
else
return QString();
}