MCPcopy Create free account
hub / github.com/ElementsProject/elements / DispatchNotifications

Method DispatchNotifications

src/qt/transactiontablemodel.cpp:731–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731void TransactionTablePriv::DispatchNotifications()
732{
733 if (!m_loaded || m_loading) return;
734
735 if (vQueueNotifications.size() > 10) { // prevent balloon spam, show maximum 10 balloons
736 bool invoked = QMetaObject::invokeMethod(parent, "setProcessingQueuedTransactions", Qt::QueuedConnection, Q_ARG(bool, true));
737 assert(invoked);
738 }
739 for (unsigned int i = 0; i < vQueueNotifications.size(); ++i)
740 {
741 if (vQueueNotifications.size() - i <= 10) {
742 bool invoked = QMetaObject::invokeMethod(parent, "setProcessingQueuedTransactions", Qt::QueuedConnection, Q_ARG(bool, false));
743 assert(invoked);
744 }
745
746 vQueueNotifications[i].invoke(parent);
747 }
748 vQueueNotifications.clear();
749}
750
751void TransactionTableModel::subscribeToCoreSignals()
752{

Callers 1

Calls 3

sizeMethod · 0.45
invokeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected