fix support of multiple languages for spellchecking + list all available languages, closes #974

This commit is contained in:
zadam
2020-04-20 22:26:31 +02:00
parent 666d202a3a
commit 8473f72ec8
4 changed files with 57 additions and 47 deletions

View File

@@ -68,7 +68,7 @@ async function createMainWindow() {
if (spellcheckEnabled) {
const languageCodes = (await optionService.getOption('spellCheckLanguageCode'))
.split('/')
.split(',')
.map(code => code.trim());
webContents.session.setSpellCheckerLanguages(languageCodes);