mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
hotfix - maya 2020 compatibility
This commit is contained in:
parent
3466ab63ea
commit
dc459e5934
1 changed files with 3 additions and 2 deletions
|
|
@ -15,12 +15,13 @@ log = logging.getLogger(__name__)
|
|||
def _get_menu():
|
||||
"""Return the menu instance if it currently exists in Maya"""
|
||||
|
||||
app = QtWidgets.QApplication.instance()
|
||||
widgets = dict((w.objectName(), w) for w in app.allWidgets())
|
||||
widgets = dict((
|
||||
w.objectName(), w) for w in QtWidgets.QApplication.allWidgets())
|
||||
menu = widgets.get(self._menu)
|
||||
return menu
|
||||
|
||||
|
||||
|
||||
def deferred():
|
||||
|
||||
log.info("Attempting to install scripts menu..")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue