272 if menu is not None: |
272 if menu is not None: |
273 menu.removeAction(self.__editorAct) |
273 menu.removeAction(self.__editorAct) |
274 |
274 |
275 self.__initialize() |
275 self.__initialize() |
276 |
276 |
277 def __projectShowMenu(self, menuName, menu): # noqa: U100 |
277 def __projectShowMenu(self, menuName, _menu): |
278 """ |
278 """ |
279 Private slot called, when the the project menu or a submenu is |
279 Private slot called, when the the project menu or a submenu is |
280 about to be shown. |
280 about to be shown. |
281 |
281 |
282 @param menuName name of the menu to be shown |
282 @param menuName name of the menu to be shown |
283 @type str |
283 @type str |
284 @param menu reference to the menu |
284 @param _menu reference to the menu (unused) |
285 @type QMenu |
285 @type QMenu |
286 """ |
286 """ |
287 if menuName == "Checks" and self.__projectAct is not None: |
287 if menuName == "Checks" and self.__projectAct is not None: |
288 self.__projectAct.setEnabled( |
288 self.__projectAct.setEnabled( |
289 ericApp().getObject("Project").getProjectLanguage() |
289 ericApp().getObject("Project").getProjectLanguage() |