MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / ShowProgress

Function ShowProgress

src/qt/transactiontablemodel.cpp:723–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723static void ShowProgress(TransactionTableModel *ttm, const std::string &title, int nProgress)
724{
725 if (nProgress == 0)
726 fQueueNotifications = true;
727
728 if (nProgress == 100)
729 {
730 fQueueNotifications = false;
731 if (vQueueNotifications.size() > 10) // prevent balloon spam, show maximum 10 balloons
732 QMetaObject::invokeMethod(ttm, "setProcessingQueuedTransactions", Qt::QueuedConnection, Q_ARG(bool, true));
733 for (unsigned int i = 0; i < vQueueNotifications.size(); ++i)
734 {
735 if (vQueueNotifications.size() - i <= 10)
736 QMetaObject::invokeMethod(ttm, "setProcessingQueuedTransactions", Qt::QueuedConnection, Q_ARG(bool, false));
737
738 vQueueNotifications[i].invoke(ttm);
739 }
740 std::vector<TransactionNotification >().swap(vQueueNotifications); // clear
741 }
742}
743
744void TransactionTableModel::subscribeToCoreSignals()
745{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
invokeMethod · 0.45
swapMethod · 0.45

Tested by

no test coverage detected