diff --git a/src/main/index.ts b/src/main/index.ts index 633391a6..2b748764 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -1022,6 +1022,8 @@ ipcMain.handle('change-language', async (_: IpcMainInvokeEvent, value: string) = }) ipcMain.handle('toggle-spellchecker', async (_: IpcMainInvokeEvent, value: boolean) => { + mainWindow?.webContents.session.setSpellCheckerEnabled(value) + const preferences = new Preferences(preferencesDBPath) const conf = await preferences.update({ language: { diff --git a/src/renderer/components/Preferences/Language.vue b/src/renderer/components/Preferences/Language.vue index 003f60a0..36575b49 100644 --- a/src/renderer/components/Preferences/Language.vue +++ b/src/renderer/components/Preferences/Language.vue @@ -26,7 +26,6 @@ >{{ language.name }} -

{{ $t('preferences.language.notice') }}

@@ -76,9 +75,7 @@ export default { return this.$store.state.Preferences.Language.language.spellchecker.enabled }, set(value) { - this.$store.dispatch('Preferences/Language/toggleSpellchecker', value).then(() => { - this.confirm() - }) + this.$store.dispatch('Preferences/Language/toggleSpellchecker', value) } }, spellcheckLanguages: {