Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions client/ayon_core/vendor/python/scriptsmenu/launchfornuke.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ def _nuke_main_window():
def _nuke_main_menubar():
"""Retrieve the main menubar of the Nuke window"""
nuke_window = _nuke_main_window()
menubar = [i for i in nuke_window.children()
if isinstance(i, QtWidgets.QMenuBar)]

assert len(menubar) == 1, "Error, could not find menu bar!"
return menubar[0]
return nuke_window.menuBar()


def main(title="Scripts"):
Expand Down
Loading