diff options
author | 2019-09-27 14:54:15 +0200 | |
---|---|---|
committer | 2019-09-27 14:54:15 +0200 | |
commit | cc038831ebea767e9a39354c9f5984d874b08377 (patch) | |
tree | ca3db9f44a4dcd23b28d9a38d8af0cea90277d38 /src/webview | |
parent | feat(Mac): Open Franz Window with `Cmd+1` (diff) | |
download | ferdium-app-cc038831ebea767e9a39354c9f5984d874b08377.tar.gz ferdium-app-cc038831ebea767e9a39354c9f5984d874b08377.tar.zst ferdium-app-cc038831ebea767e9a39354c9f5984d874b08377.zip |
fix(Spell checking): Fix "undefined" language in context menu
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/contextMenu.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/contextMenu.js b/src/webview/contextMenu.js index 2fdbcdca6..d3b976554 100644 --- a/src/webview/contextMenu.js +++ b/src/webview/contextMenu.js | |||
@@ -255,9 +255,9 @@ const buildMenuTpl = (props, suggestions, isSpellcheckEnabled, defaultSpellcheck | |||
255 | }, | 255 | }, |
256 | { | 256 | { |
257 | id: 'resetToDefault', | 257 | id: 'resetToDefault', |
258 | label: `Reset to system default (${SPELLCHECKER_LOCALES[defaultSpellcheckerLanguage]})`, | 258 | label: `Reset to system default (${defaultSpellcheckerLanguage === 'automatic' ? 'Automatic' : SPELLCHECKER_LOCALES[defaultSpellcheckerLanguage]})`, |
259 | type: 'radio', | 259 | type: 'radio', |
260 | visible: defaultSpellcheckerLanguage !== spellcheckerLanguage, | 260 | visible: defaultSpellcheckerLanguage !== spellcheckerLanguage || (defaultSpellcheckerLanguage !== 'automatic' && spellcheckerLanguage === 'automatic'), |
261 | click() { | 261 | click() { |
262 | debug('Resetting service spellchecker to system default'); | 262 | debug('Resetting service spellchecker to system default'); |
263 | ipcRenderer.sendToHost('set-service-spellchecker-language', 'reset'); | 263 | ipcRenderer.sendToHost('set-service-spellchecker-language', 'reset'); |