diff -r 0572a215bd2f -r 5994b80b8760 eric6/Plugins/PluginEricapi.py --- a/eric6/Plugins/PluginEricapi.py Sun Apr 11 16:53:48 2021 +0200 +++ b/eric6/Plugins/PluginEricapi.py Sun Apr 11 18:45:10 2021 +0200 @@ -138,11 +138,10 @@ @param menuName name of the menu to be shown (string) @param menu reference to the menu (QMenu) """ - if menuName == "Apidoc": - if self.__projectAct is not None: - self.__projectAct.setEnabled( - e5App().getObject("Project").getProjectLanguage() in - ["Python", "Python3", "Ruby", "MicroPython"]) + if menuName == "Apidoc" and self.__projectAct is not None: + self.__projectAct.setEnabled( + e5App().getObject("Project").getProjectLanguage() in + ["Python", "Python3", "Ruby", "MicroPython"]) def __doEricapi(self): """