diff src/lib-storage/index/index-search.c @ 8508:689a63a99363 HEAD

fts: Hide "Searching .." notify while indexing.
author Timo Sirainen <tss@iki.fi>
date Sun, 30 Nov 2008 16:28:46 +0200
parents f323bf2465bd
children 2eede4287841
line wrap: on
line diff
--- a/src/lib-storage/index/index-search.c	Sun Nov 30 15:57:41 2008 +0200
+++ b/src/lib-storage/index/index-search.c	Sun Nov 30 16:28:46 2008 +0200
@@ -1074,7 +1074,8 @@
 		/* set the search time in here, in case a plugin
 		   already spent some time indexing the mailbox */
 		ctx->search_start_time = ioloop_timeval;
-	} else if (box->storage->callbacks->notify_ok != NULL) {
+	} else if (box->storage->callbacks->notify_ok != NULL &&
+		   !ctx->mail_ctx.progress_hidden) {
 		percentage = ctx->mail_ctx.progress_cur * 100.0 /
 			ctx->mail_ctx.progress_max;
 		msecs = (ioloop_timeval.tv_sec -