def run(self):
spell_check_lang = self.api.opt.general['spell_check']
if not spell_check_lang:
bubblesub.ui.util.error('Spell check was disabled in config.')
return
try:
dictionary = enchant.Dict(spell_check_lang)
except enchant.errors.DictNotFoundError:
bubblesub.ui.util.error(
f'Spell check language {spell_check_lang} was not found.')
return
async def run(api, main_window):
SpellCheckDialog(api, main_window, dictionary)
await self.api.gui.exec(run)
评论列表
文章目录