Allow the use of the native macOS menu bar

This commit is contained in:
Travis Abendshien
2024-05-10 15:43:26 -07:00
parent 03a46ae57b
commit 94f929d122

View File

@@ -266,8 +266,11 @@ class QtDriver(QObject):
self.splash.show()
menu_bar = self.main_window.menuBar()
menu_bar.setNativeMenuBar(False)
# menu_bar.setStyleSheet('background:#00000000;')
# Allow the use of the native macOS menu bar.
if sys.platform != "darwin":
menu_bar.setNativeMenuBar(False)
file_menu = QMenu("&File", menu_bar)
edit_menu = QMenu("&Edit", menu_bar)
tools_menu = QMenu("&Tools", menu_bar)