mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-03-14 03:25:15 +01:00
notmuch new: Fix progress notification on database upgrade.
This was firing continuously rather than just once per second as intended.
This commit is contained in:
parent
e307e990c9
commit
1c86b48329
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue