Updated labels and incidentally "fixes" #147

This commit is contained in:
Simon Cambier
2022-12-11 21:37:56 +01:00
parent da2dd90374
commit 3bdbfe12bf
2 changed files with 9 additions and 12 deletions

View File

@@ -148,7 +148,7 @@ async function populateIndex(): Promise<void> {
)
}
if (diff.toAdd.length >= 500) {
if (diff.toAdd.length >= 1000 && !Platform.isIosApp) {
new Notice(
`Omnisearch - ${diff.toAdd.length} files need to be indexed. Obsidian may experience stutters and freezes during the process`,
10_000
@@ -165,7 +165,7 @@ async function populateIndex(): Promise<void> {
}
console.timeEnd('Omnisearch - Indexing total time')
if (diff.toAdd.length >= 500) {
if (diff.toAdd.length >= 1000) {
new Notice(`Omnisearch - Your files have been indexed.`)
}
indexingStep.set(IndexingStepType.Done)