mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 17:32:33 +00:00
simplewallet: mark the active account in print_accounts
This commit is contained in:
parent
4146f2e202
commit
37e1fd94d5
1 changed files with 3 additions and 2 deletions
|
@ -4705,10 +4705,11 @@ bool simple_wallet::account(const std::vector<std::string> &args/* = std::vector
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
void simple_wallet::print_accounts()
|
void simple_wallet::print_accounts()
|
||||||
{
|
{
|
||||||
success_msg_writer() << boost::format("%15s %21s %21s %21s") % tr("Account") % tr("Balance") % tr("Unlocked balance") % tr("Label");
|
success_msg_writer() << boost::format(" %15s %21s %21s %21s") % tr("Account") % tr("Balance") % tr("Unlocked balance") % tr("Label");
|
||||||
for (uint32_t account_index = 0; account_index < m_wallet->get_num_subaddress_accounts(); ++account_index)
|
for (uint32_t account_index = 0; account_index < m_wallet->get_num_subaddress_accounts(); ++account_index)
|
||||||
{
|
{
|
||||||
success_msg_writer() << boost::format(tr("%8u %6s %21s %21s %21s"))
|
success_msg_writer() << boost::format(tr(" %c%8u %6s %21s %21s %21s"))
|
||||||
|
% (m_current_subaddress_account == account_index ? '*' : ' ')
|
||||||
% account_index
|
% account_index
|
||||||
% m_wallet->get_subaddress_as_str({account_index, 0}).substr(0, 6)
|
% m_wallet->get_subaddress_as_str({account_index, 0}).substr(0, 6)
|
||||||
% print_money(m_wallet->balance(account_index))
|
% print_money(m_wallet->balance(account_index))
|
||||||
|
|
Loading…
Reference in a new issue