From 1c86b48329c0cd69b4353accda4d28739ec1c0f3 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 7 Jan 2010 21:24:44 -0800 Subject: [PATCH] notmuch new: Fix progress notification on database upgrade. This was firing continuously rather than just once per second as intended. --- lib/database.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/database.cc b/lib/database.cc index 6b8c9989..831b4a16 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -737,8 +737,10 @@ notmuch_database_upgrade (notmuch_database_t *notmuch, notmuch_messages_has_more (messages); notmuch_messages_advance (messages)) { - if (do_progress_notify) + if (do_progress_notify) { progress_notify (closure, count, total); + do_progress_notify = 0; + } message = notmuch_messages_get (messages); -- 2.43.0