Set an empty array to disable spell-checker

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-03-03 14:49:07 +01:00
parent b8adc66898
commit 121bba1f35
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790

View File

@ -393,7 +393,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
console.log("There were problems setting the spellcheck languages", er);
}
} else {
mainWindow.webContents.session.spellcheck = false;
mainWindow.webContents.session.setSpellCheckerLanguages([]);
}
break;
case 'getSpellCheckLanguages':