330 if menu is not None: |
330 if menu is not None: |
331 menu.removeAction(self.__editorAct) |
331 menu.removeAction(self.__editorAct) |
332 |
332 |
333 self.__initialize() |
333 self.__initialize() |
334 |
334 |
335 def __projectShowMenu(self, menuName, menu): # noqa: U100 |
335 def __projectShowMenu(self, menuName, _menu): |
336 """ |
336 """ |
337 Private slot called, when the the project menu or a submenu is |
337 Private slot called, when the the project menu or a submenu is |
338 about to be shown. |
338 about to be shown. |
339 |
339 |
340 @param menuName name of the menu to be shown |
340 @param menuName name of the menu to be shown |
341 @type str |
341 @type str |
342 @param menu reference to the menu |
342 @param _menu reference to the menu (unused) |
343 @type QMenu |
343 @type QMenu |
344 """ |
344 """ |
345 if menuName == "Checks" and self.__projectAct is not None: |
345 if menuName == "Checks" and self.__projectAct is not None: |
346 self.__projectAct.setEnabled( |
346 self.__projectAct.setEnabled( |
347 ericApp().getObject("Project").getProjectLanguage() |
347 ericApp().getObject("Project").getProjectLanguage() |