From 8f7955888154e85453216d0ee58b15745940cc73 Mon Sep 17 00:00:00 2001 From: fekt Date: Tue, 11 Oct 2022 14:12:16 -0400 Subject: [PATCH] Status bar changes when loading txs --- src/rpc.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rpc.cpp b/src/rpc.cpp index b75c29c..3625d6e 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -1034,6 +1034,7 @@ void RPC::refreshTransactions() { if (conn == nullptr) return noConnection(); + ui->statusBar->showMessage("Loading transactions... "); getTransactions([=] (QJsonValue reply) { QList txdata; @@ -1061,7 +1062,8 @@ void RPC::refreshTransactions() { // Update model data, which updates the table view qDebug() << "refreshTransactions"; - transactionsTableModel->addTData(txdata); + transactionsTableModel->addTData(txdata); + ui->statusBar->showMessage("Transactions loaded", 3 * 1000); }); } @@ -1111,7 +1113,7 @@ void RPC::refreshSentZTrans() { if (!error) sentTx.confirmations = j["confirmations"].toInt(); } - + transactionsTableModel->addZSentData(newSentZTxs); delete txidList; }