Skip to content

Commit 7bb45e4

Browse files
committed
Qt: update header count regardless of update delay
1 parent 1d73636 commit 7bb45e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qt/clientmodel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ static void BlockTipChanged(ClientModel *clientmodel, bool initialSync, int heig
237237
clientmodel->cachedBestHeaderHeight = height;
238238
clientmodel->cachedBestHeaderTime = blockTime;
239239
}
240-
// if we are in-sync, update the UI regardless of last update time
241-
if (!initialSync || now - nLastUpdateNotification > MODEL_UPDATE_DELAY) {
240+
// if we are in-sync or if we notify a header update, update the UI regardless of last update time
241+
if (fHeader || !initialSync || now - nLastUpdateNotification > MODEL_UPDATE_DELAY) {
242242
//pass an async signal to the UI thread
243243
QMetaObject::invokeMethod(clientmodel, "numBlocksChanged", Qt::QueuedConnection,
244244
Q_ARG(int, height),

0 commit comments

Comments
 (0)