#8218 Mac: Pre-populate Windows menu to fix missing menu on macOS

On macOS, the native menu bar hides empty menus. The Windows menu was
populated lazily via aboutToShow, but since it was empty at creation
time macOS never rendered it, so the signal could never fire.

Fix by calling slotBuildWindowActions() after createDockPanels() in
both RiuMainWindow and RiuPlotMainWindow constructors.
This commit is contained in:
Magne Sjaastad committed 2026-04-08 10:57:34 +02:00
1 parent c0901abe60
commit 125200bf5b
2 files changed
+6

No files matched your search

@@ -153,6 +153,9 @@ RiuMainWindow::RiuMainWindow()
createMenus();
createToolBars();
createDockPanels();
// Pre-populate the Windows menu so it is not empty on creation. On macOS, the native menu bar
// hides empty menus, preventing the aboutToShow signal from ever firing.
slotBuildWindowActions();
setAcceptDrops( true );