Fix linting error and move spell check update slot to the correct location
This commit is contained in:
@@ -824,14 +824,16 @@ class GuiMain(QMainWindow):
|
||||
|
||||
@pyqtSlot()
|
||||
def showDictionariesDialog(self) -> None:
|
||||
"""Show the download dictionaries dialog and update language list when closed."""
|
||||
"""Show the download dictionaries dialog and update language
|
||||
list when closed.
|
||||
"""
|
||||
dialog = GuiDictionaries(self)
|
||||
dialog.activateDialog()
|
||||
if not dialog.initDialog():
|
||||
dialog.close()
|
||||
SHARED.error(self.tr("Could not initialise the dialog."))
|
||||
return
|
||||
|
||||
|
||||
dialog.finished.connect(self.mainMenu.updateSpellCheckLanguages)
|
||||
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user