mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 04:16:32 +02:00
Merge pull request #3376
833f9fcf
show '<Not set>' for empty wallet description (cryptochangements34)
This commit is contained in:
commit
2a9839cc3e
@ -6802,9 +6802,13 @@ bool simple_wallet::wallet_info(const std::vector<std::string> &args)
|
|||||||
{
|
{
|
||||||
bool ready;
|
bool ready;
|
||||||
uint32_t threshold, total;
|
uint32_t threshold, total;
|
||||||
|
std::string description = m_wallet->get_description();
|
||||||
|
if (description.empty())
|
||||||
|
{
|
||||||
|
description = "<Not set>";
|
||||||
|
}
|
||||||
message_writer() << tr("Filename: ") << m_wallet->get_wallet_file();
|
message_writer() << tr("Filename: ") << m_wallet->get_wallet_file();
|
||||||
message_writer() << tr("Description: ") << m_wallet->get_description();
|
message_writer() << tr("Description: ") << description;
|
||||||
message_writer() << tr("Address: ") << m_wallet->get_account().get_public_address_str(m_wallet->nettype());
|
message_writer() << tr("Address: ") << m_wallet->get_account().get_public_address_str(m_wallet->nettype());
|
||||||
std::string type;
|
std::string type;
|
||||||
if (m_wallet->watch_only())
|
if (m_wallet->watch_only())
|
||||||
|
Loading…
Reference in New Issue
Block a user