Skip to content

Commit 9d9f7f1

Browse files
committed
qt, rpc: Add "Executing…" message
1 parent d2f6d29 commit 9d9f7f1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/qt/rpcconsole.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,8 @@ void RPCConsole::on_lineEdit_returnPressed()
931931
#endif
932932

933933
message(CMD_REQUEST, QString::fromStdString(strFilteredCmd));
934+
//: A message in the GUI console while an entered command being executed.
935+
message(CMD_REPLY, tr("Executing…"));
934936
Q_EMIT cmdRequest(cmd, m_last_wallet_model);
935937

936938
cmd = QString::fromStdString(strFilteredCmd);
@@ -977,7 +979,12 @@ void RPCConsole::startExecutor()
977979
executor->moveToThread(&thread);
978980

979981
// Replies from executor object must go to this object
980-
connect(executor, &RPCExecutor::reply, this, qOverload<int, const QString&>(&RPCConsole::message));
982+
connect(executor, &RPCExecutor::reply, this, [this](int category, const QString& command) {
983+
// Remove "Executing…" message.
984+
ui->messagesWidget->undo();
985+
message(category, command);
986+
scrollToEnd();
987+
});
981988

982989
// Requests from this object must go to executor
983990
connect(this, &RPCConsole::cmdRequest, executor, &RPCExecutor::request);

0 commit comments

Comments
 (0)