修复添加索引目录后索引状态未更新的问题
This commit is contained in:
parent
e52bc8ca76
commit
ed768ff48f
|
@ -55,9 +55,11 @@ void IndexScheduler::addNewPath(const QString &folders, const QStringList &black
|
||||||
BatchIndexer::Targets target = BatchIndexer::Target::None;
|
BatchIndexer::Targets target = BatchIndexer::Target::None;
|
||||||
if(m_config->isFileIndexEnable()) {
|
if(m_config->isFileIndexEnable()) {
|
||||||
target |= BatchIndexer::Target::Basic;
|
target |= BatchIndexer::Target::Basic;
|
||||||
|
m_statusRecorder->setStatus(INDEX_DATABASE_STATE_KEY, IndexStatusRecorder::State::Updating);
|
||||||
}
|
}
|
||||||
if(m_config->isContentIndexEnable()) {
|
if(m_config->isContentIndexEnable()) {
|
||||||
target |= BatchIndexer::Target::Content;
|
target |= BatchIndexer::Target::Content;
|
||||||
|
m_statusRecorder->setStatus(CONTENT_INDEX_DATABASE_STATE_KEY, IndexStatusRecorder::State::Updating);
|
||||||
}
|
}
|
||||||
BatchIndexer::WorkMode mode = BatchIndexer::WorkMode::Add;
|
BatchIndexer::WorkMode mode = BatchIndexer::WorkMode::Add;
|
||||||
startIndexJob(QStringList() << folders, blackList, mode, target);
|
startIndexJob(QStringList() << folders, blackList, mode, target);
|
||||||
|
|
Loading…
Reference in New Issue