From ed768ff48f108a442b866a9c7783364229d18d11 Mon Sep 17 00:00:00 2001 From: iaom Date: Mon, 15 May 2023 11:35:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B7=BB=E5=8A=A0=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E7=9B=AE=E5=BD=95=E5=90=8E=E7=B4=A2=E5=BC=95=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=9C=AA=E6=9B=B4=E6=96=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsearch/index/index-scheduler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsearch/index/index-scheduler.cpp b/libsearch/index/index-scheduler.cpp index e7d854d..e33c182 100644 --- a/libsearch/index/index-scheduler.cpp +++ b/libsearch/index/index-scheduler.cpp @@ -55,9 +55,11 @@ void IndexScheduler::addNewPath(const QString &folders, const QStringList &black BatchIndexer::Targets target = BatchIndexer::Target::None; if(m_config->isFileIndexEnable()) { target |= BatchIndexer::Target::Basic; + m_statusRecorder->setStatus(INDEX_DATABASE_STATE_KEY, IndexStatusRecorder::State::Updating); } if(m_config->isContentIndexEnable()) { target |= BatchIndexer::Target::Content; + m_statusRecorder->setStatus(CONTENT_INDEX_DATABASE_STATE_KEY, IndexStatusRecorder::State::Updating); } BatchIndexer::WorkMode mode = BatchIndexer::WorkMode::Add; startIndexJob(QStringList() << folders, blackList, mode, target);