mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge dad667ad68 into f9bbab9944
This commit is contained in:
commit
343384d97e
1 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,10 @@ def _nuke_main_menubar():
|
|||
menubar = [i for i in nuke_window.children()
|
||||
if isinstance(i, QtWidgets.QMenuBar)]
|
||||
|
||||
# OSX fix - nuke_window.children() can't find menubars
|
||||
if not menubar:
|
||||
menubar = [nuke_window.menuBar()]
|
||||
|
||||
assert len(menubar) == 1, "Error, could not find menu bar!"
|
||||
return menubar[0]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue