mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
#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:
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 );
|
||||
|
||||
|
||||
Reference in new issue
Block a user