Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -3636,16 +3636,6 @@ void Application::updateWindowTitle(){ · 3635 unmodified lines | |||
| 3636 | QString title = QString() + (!username.isEmpty() ? username + " @ " : QString()) | 3636 | QString title = QString() + (!username.isEmpty() ? username + " @ " : QString()) |
| 3637 | + AddressManager::getInstance().getCurrentDomain() + connectionStatus + buildVersion; | 3637 | + AddressManager::getInstance().getCurrentDomain() + connectionStatus + buildVersion; |
| 3638 | 3638 | ||
| 3639 | AccountManager& accountManager = AccountManager::getInstance(); | ||
| 3640 | if (accountManager.getAccountInfo().hasBalance()) { | ||
| 3641 | float creditBalance = accountManager.getAccountInfo().getBalance() / SATOSHIS_PER_CREDIT; | ||
| 3642 | |||
| 3643 | QString creditBalanceString; | ||
| 3644 | creditBalanceString.sprintf("%.8f", creditBalance); | ||
| 3645 | |||
| 3646 | title += " - ₵" + creditBalanceString; | ||
| 3647 | } | ||
| 3648 | |||
| 3649 | #ifndef WIN32 | 3639 | #ifndef WIN32 |
| 3650 | // crashes with vs2013/win32 | 3640 | // crashes with vs2013/win32 |
| 3651 | qDebug("Application title set to: %s", title.toStdString().c_str()); | 3641 | qDebug("Application title set to: %s", title.toStdString().c_str()); |