Skip to content

Conversation

@Hisuuu
Copy link

@Hisuuu Hisuuu commented Dec 9, 2025

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:

  1. Open Hiero from the launcher

@BigRoy BigRoy added type: bug Something isn't working community Issues and PRs coming from the community members labels Dec 9, 2025
Comment on lines 22 to 32
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]
Copy link
Contributor

@BigRoy BigRoy Dec 9, 2025

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.

Suggested change
return menubar[0]
return hiero_window.menuBar()

Copy link
Contributor

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 :)

Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Issues and PRs coming from the community members type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants