mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 06:23:35 +02:00
Merge pull request #3056 from birarda/master
fix rounding of credit balance in application title
This commit is contained in:
commit
19195f9119
1 changed files with 1 additions and 1 deletions
|
@ -3189,7 +3189,7 @@ void Application::updateWindowTitle(){
|
||||||
float creditBalance = accountManager.getAccountInfo().getBalance() / SATOSHIS_PER_CREDIT;
|
float creditBalance = accountManager.getAccountInfo().getBalance() / SATOSHIS_PER_CREDIT;
|
||||||
|
|
||||||
QString creditBalanceString;
|
QString creditBalanceString;
|
||||||
creditBalanceString.sprintf("%.8f", creditBalance);
|
creditBalanceString.sprintf("%.8f", floor(creditBalance + 0.5));
|
||||||
|
|
||||||
title += " - ₵" + creditBalanceString;
|
title += " - ₵" + creditBalanceString;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue