eric6/Plugins/PluginEricdoc.py

changeset 8222
5994b80b8760
parent 8218
7c09585bd960
--- a/eric6/Plugins/PluginEricdoc.py	Sun Apr 11 16:53:48 2021 +0200
+++ b/eric6/Plugins/PluginEricdoc.py	Sun Apr 11 18:45:10 2021 +0200
@@ -159,11 +159,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 __doEricdoc(self):
         """

eric ide

mercurial