Skip to content

Commit fddf060

Browse files
committed
Disable native menu bar on macOS
1 parent bc34db2 commit fddf060

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/app.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ int App::run(int argc, char **argv)
3636
QCoreApplication::setApplicationName("ScratchCPP Player");
3737
QCoreApplication::setApplicationVersion(BUILD_VERSION);
3838

39+
#ifdef Q_OS_MACOS
40+
// Disable native menu bar on macOS
41+
app.setAttribute(Qt::AA_DontUseNativeMenuBar);
42+
#endif
3943
// Set style and icon theme name
4044
QQuickStyle::setStyle("Material");
4145
QIcon::setThemeName("scratchcpp");

0 commit comments

Comments
 (0)