flika-org / flika

An interactive image processing program for biologists written in Python.
http://flika-org.github.io/
MIT License
22 stars 1 forks source link

'Plugins' and 'Scripts' Menu don't load in OSX #21

Closed kyleellefsen closed 7 years ago

BrettJSettle commented 7 years ago

Is there any error that shows up?

kyleellefsen commented 7 years ago

No, no error. Those two items are just missing from the menu.

kyleellefsen commented 7 years ago

I discovered the problem. In OS X if there is nothing inside a top level menu, the menu is not displayed. Because the scripts and plugins menus get built on "aboutToShow" and the top level menu was hidden, they never got built.

I called self.menuBar().setNativeMenuBar(False) and that fixed it.