don't set menu bar to nullptr on macos

This commit is contained in:
emiyl
2026-07-12 23:49:28 +01:00
parent 145ad1e9d5
commit 14b0d7d0de

View File

@@ -1790,7 +1790,9 @@ void MainWindow::SetMenuVisible(bool state)
if (m_menu_visible == state)
return;
#if !BOOST_OS_MACOS
SetMenuBar(state ? m_menuBar : nullptr);
#endif
m_menu_visible = state;
}