GUI: RPCConsole: Log wallet changes

This commit is contained in:
Luke Dashjr 2017-12-14 03:29:55 +00:00 committed by Jonas Schnelli
parent b6d04fc7cc
commit cfa4133ce5
No known key found for this signature in database
GPG Key ID: 1EB776BB03C7922D
2 changed files with 10 additions and 0 deletions

View File

@ -893,6 +893,15 @@ void RPCConsole::on_lineEdit_returnPressed()
if (wallet_index > 0) {
walletID = (QString)ui->WalletSelector->itemData(wallet_index).value<QString>();
}
if (m_last_wallet_id != walletID) {
if (walletID.isEmpty()) {
message(CMD_REQUEST, tr("Executing command without any wallet"));
} else {
message(CMD_REQUEST, tr("Executing command using \"%1\" wallet").arg(walletID));
}
m_last_wallet_id = walletID;
}
#endif
message(CMD_REQUEST, QString::fromStdString(strFilteredCmd));

View File

@ -153,6 +153,7 @@ private:
int consoleFontSize;
QCompleter *autoCompleter;
QThread thread;
QString m_last_wallet_id;
/** Update UI with latest network info from model. */
void updateNetworkState();