Skip to content

Commit 94f929d

Browse files
committed
Allow the use of the native macOS menu bar
1 parent 03a46ae commit 94f929d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tagstudio/src/qt/ts_qt.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,11 @@ def start(self):
266266
self.splash.show()
267267

268268
menu_bar = self.main_window.menuBar()
269-
menu_bar.setNativeMenuBar(False)
270-
# menu_bar.setStyleSheet('background:#00000000;')
269+
270+
# Allow the use of the native macOS menu bar.
271+
if sys.platform != "darwin":
272+
menu_bar.setNativeMenuBar(False)
273+
271274
file_menu = QMenu("&File", menu_bar)
272275
edit_menu = QMenu("&Edit", menu_bar)
273276
tools_menu = QMenu("&Tools", menu_bar)

0 commit comments

Comments
 (0)