simplewallet: don't ask about mining when running a command line

This is likely to be done via a script
This commit is contained in:
moneromooo-monero 2019-06-21 13:55:50 +00:00 committed by wowario
parent ec42fd80a1
commit 556ec3c144
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111
1 changed files with 3 additions and 1 deletions

View File

@ -4121,7 +4121,9 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
m_wallet->callback(this);
check_background_mining(password);
bool skip_check_backround_mining = !command_line::get_arg(vm, arg_command).empty();
if (!skip_check_backround_mining)
check_background_mining(password);
if (welcome)
message_writer(console_color_yellow, true) << tr("If you are new to Wownero, type \"welcome\" for a brief overview.");