This commit is contained in:
Simon Cambier
2022-10-28 13:44:30 +02:00
parent 9b6c59f5ff
commit e8bba87b51
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ if you want to view the source visit the plugins github repository
*/ */
` `
const production = false//!process.env.ROLLUP_WATCH const production = !process.env.ROLLUP_WATCH
export default { export default {
input: './src/main.ts', input: './src/main.ts',

View File

@@ -85,7 +85,6 @@ export default class OmnisearchPlugin extends Plugin {
} }
onunload(): void { onunload(): void {
console.log('Omnisearch - Interrupting PDF indexing')
NotesIndex.processQueue.clearQueue() NotesIndex.processQueue.clearQueue()
} }
@@ -131,6 +130,7 @@ async function populateIndex(): Promise<void> {
// Load PDFs into the main search engine, and write cache // Load PDFs into the main search engine, and write cache
SearchEngine.loadTmpDataIntoMain() SearchEngine.loadTmpDataIntoMain()
SearchEngine.isIndexing.set(false)
await tmpEngine.writeToCache() await tmpEngine.writeToCache()
// Clear memory // Clear memory