157 about to be shown. |
157 about to be shown. |
158 |
158 |
159 @param menuName name of the menu to be shown (string) |
159 @param menuName name of the menu to be shown (string) |
160 @param menu reference to the menu (QMenu) |
160 @param menu reference to the menu (QMenu) |
161 """ |
161 """ |
162 if menuName == "Apidoc": |
162 if menuName == "Apidoc" and self.__projectAct is not None: |
163 if self.__projectAct is not None: |
163 self.__projectAct.setEnabled( |
164 self.__projectAct.setEnabled( |
164 e5App().getObject("Project").getProjectLanguage() in |
165 e5App().getObject("Project").getProjectLanguage() in |
165 ["Python", "Python3", "Ruby", "MicroPython"]) |
166 ["Python", "Python3", "Ruby", "MicroPython"]) |
|
167 |
166 |
168 def __doEricdoc(self): |
167 def __doEricdoc(self): |
169 """ |
168 """ |
170 Private slot to perform the eric6_doc api documentation generation. |
169 Private slot to perform the eric6_doc api documentation generation. |
171 """ |
170 """ |