We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbec1a9 + eca5252 commit ea267ebCopy full SHA for ea267eb
src/qml/nodemodel.cpp
@@ -10,6 +10,7 @@
10
#include <cassert>
11
#include <chrono>
12
13
+#include <QMetaObject>
14
#include <QTimerEvent>
15
16
NodeModel::NodeModel(interfaces::Node& node)
@@ -71,7 +72,9 @@ void NodeModel::ConnectToBlockTipSignal()
71
72
73
m_handler_notify_block_tip = m_node.handleNotifyBlockTip(
74
[this](SynchronizationState state, interfaces::BlockTip tip, double verification_progress) {
- setBlockTipHeight(tip.block_height);
75
- setVerificationProgress(verification_progress);
+ QMetaObject::invokeMethod(this, [=] {
76
+ setBlockTipHeight(tip.block_height);
77
+ setVerificationProgress(verification_progress);
78
+ });
79
});
80
}
0 commit comments