Skip to content
Permalink
Browse files

fix(Spell checking): Fix "undefined" language in context menu

  • Loading branch information...
adlk committed Sep 27, 2019
1 parent 71831ec commit cc038831ebea767e9a39354c9f5984d874b08377
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/webview/contextMenu.js
@@ -255,9 +255,9 @@ const buildMenuTpl = (props, suggestions, isSpellcheckEnabled, defaultSpellcheck
},
{
id: 'resetToDefault',
label: `Reset to system default (${SPELLCHECKER_LOCALES[defaultSpellcheckerLanguage]})`,
label: `Reset to system default (${defaultSpellcheckerLanguage === 'automatic' ? 'Automatic' : SPELLCHECKER_LOCALES[defaultSpellcheckerLanguage]})`,
type: 'radio',
visible: defaultSpellcheckerLanguage !== spellcheckerLanguage,
visible: defaultSpellcheckerLanguage !== spellcheckerLanguage || (defaultSpellcheckerLanguage !== 'automatic' && spellcheckerLanguage === 'automatic'),
click() {
debug('Resetting service spellchecker to system default');
ipcRenderer.sendToHost('set-service-spellchecker-language', 'reset');

0 comments on commit cc03883

Please sign in to comment.
You can’t perform that action at this time.