src: avoid indexing slowdown on macOS by not using unknown progress for progressbar in status bar

This commit is contained in:
Eberhard Graether
2018-07-24 03:36:27 +02:00
parent 0fc670bcd7
commit ac31bb6779
14 changed files with 34 additions and 67 deletions
@@ -12,16 +12,14 @@ public:
return "MessageIndexingStatus";
}
MessageIndexingStatus(bool showProgress, bool unknownProgress, size_t progressPercent)
MessageIndexingStatus(bool showProgress, size_t progressPercent = 0)
: showProgress(showProgress)
, unknownProgress(unknownProgress)
, progressPercent(progressPercent)
{
setSendAsTask(false);
}
const bool showProgress;
const bool unknownProgress;
const size_t progressPercent;
};