Optimization
All checks were successful
Build on Push and create Release on Tag / build (push) Successful in 3m58s

This commit is contained in:
MassiveBox 2025-12-04 00:05:51 +01:00
parent b7c81d1fa0
commit 68025b9a34
Signed by: massivebox
GPG key ID: 9B74D3A59181947D
2 changed files with 32 additions and 22 deletions

View file

@ -114,7 +114,8 @@ export default class SpellCheckPlugin extends Plugin {
if(settings.enabled) {
await this.suggestions.storeBlocks(protyle, settings.language)
void this.suggestions.forAllBlocksSuggest(true, true)
const useOnline = this.settingsUtil.get('online');
void this.suggestions.forAllBlocksSuggest(true, true, useOnline ? undefined : 10);
}
}