diff --git a/openpype/hosts/maya/api/menu.py b/openpype/hosts/maya/api/menu.py index 6811887e876..ad225dcd287 100644 --- a/openpype/hosts/maya/api/menu.py +++ b/openpype/hosts/maya/api/menu.py @@ -86,7 +86,7 @@ def launch_workfiles_app(*_args, **_kwargs): def remove_project_manager(): top_menu = _get_menu() - # Try to find workfile tool action in the menu + # Try to find "System" menu action in the menu system_menu = None for action in top_menu.actions(): if action.text() == "System": @@ -96,12 +96,14 @@ def remove_project_manager(): if system_menu is None: return + # Try to find "Project manager" action in "System" menu project_manager_action = None for action in system_menu.menu().children(): if hasattr(action, "text") and action.text() == "Project Manager": project_manager_action = action break + # Remove "Project manager" action if was found if project_manager_action is not None: system_menu.menu().removeAction(project_manager_action)