Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
simplified conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Aug 18, 2021
1 parent 14e40a2 commit 0e0d06b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions openpype/hosts/maya/api/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,9 @@ def remove_project_manager():

project_manager_action = None
for action in system_menu.menu().children():
if hasattr(action, "text"):
print(action.text())
if action.text() == "Project Manager":
project_manager_action = action
break
if hasattr(action, "text") and action.text() == "Project Manager":
project_manager_action = action
break

if project_manager_action is not None:
system_menu.menu().removeAction(project_manager_action)
Expand Down

0 comments on commit 0e0d06b

Please sign in to comment.