mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
TxBroadcast: close dialog on successful broadcast
This commit is contained in:
parent
e5a61c6e2f
commit
d9409615f3
1 changed files with 7 additions and 4 deletions
|
@ -46,15 +46,18 @@ void TxBroadcastDialog::broadcastTx() {
|
|||
}
|
||||
|
||||
void TxBroadcastDialog::onApiResponse(const DaemonRpc::DaemonResponse &resp) {
|
||||
if (resp.endpoint != DaemonRpc::Endpoint::SEND_RAW_TRANSACTION) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!resp.ok) {
|
||||
QMessageBox::warning(this, "Transaction broadcast", resp.status);
|
||||
return;
|
||||
}
|
||||
|
||||
if (resp.endpoint == DaemonRpc::Endpoint::SEND_RAW_TRANSACTION) {
|
||||
QMessageBox::information(this, "Transaction broadcast", "Transaction submitted successfully.\n\n"
|
||||
"If the transaction belongs to this wallet it may take several minutes before it shows up in the history tab.");
|
||||
}
|
||||
this->accept();
|
||||
QMessageBox::information(this, "Transaction broadcast", "Transaction submitted successfully.\n\n"
|
||||
"If the transaction belongs to this wallet it may take several minutes before it shows up in the history tab.");
|
||||
}
|
||||
|
||||
TxBroadcastDialog::~TxBroadcastDialog() = default;
|
||||
|
|
Loading…
Reference in a new issue