-
Notifications
You must be signed in to change notification settings - Fork 8
Fix Hiero launching in macOS #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
| menubar = [i for i in hiero_window.children() if isinstance( | ||
| i, | ||
| QtWidgets.QMenuBar | ||
| )] | ||
|
|
||
| # OSX fix - hiero_window.children() can't find menubars | ||
| if not menubar: | ||
| menubar = [hiero_window.menuBar()] | ||
|
|
||
| assert len(menubar) == 1, "Error, could not find menu bar!" | ||
| return menubar[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does return hiero_window.menuBar() not work also on Windows and Linux? Because if it does work - let's unify the behavior.
| return menubar[0] | |
| return hiero_window.menuBar() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, somehow the suggestion doesn't seem to apply to all the lines - I guess it's clear what I mean :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested on Linux and it works.
I don't know if I'm able to unify the code, so I simply added the fix instead 😅
I'm totally ok with you!
Changelog Description
This PR fixes the launching of Hiero in macOS, because of a specific issue with Qt menu bars in this OS.
This bugfix is similar to Nuke.
Additional review information
Conversation in Ayon Forum: https://community.ynput.io/t/error-interpreting-this-plugin-nuke-osx/2730
Testing notes: