Commit 993ecffe authored by Laurent Montel's avatar Laurent Montel 😁

Add variable to enable/disable check indexing

parent e8f57efc
......@@ -1680,8 +1680,9 @@ void KMKernel::slotRunBackgroundTasks() // called regularly by timer
if (KMailSettings::self()->autoExpiring()) {
mFolderCollectionMonitor->expireAllFolders(false /*scheduled, not immediate*/, entityTreeModel());
}
mCheckIndexingManager->start(entityTreeModel());
if (KMailSettings::self()->checkCollectionsIndexing()) {
mCheckIndexingManager->start(entityTreeModel());
}
#ifdef DEBUG_SCHEDULER // for debugging, see jobscheduler.h
mBackgroundTasksTimer->start(60 * 1000); // check again in 1 minute
#else
......
......@@ -127,6 +127,9 @@
<label>Ask for confirmation before moving all messages to trash</label>
<default>true</default>
</entry>
<entry name="CheckCollectionsIndexing" type="Bool" key="check-collections-indexing">
<default>true</default>
</entry>
<entry name="AutoExpiring" type="Bool" key="auto-expiring">
<label>Specifies whether the folders will expire in the background (for internal use only)</label>
<default>true</default>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment