diff options
| author | Dan Williams <dcbw@libreoffice.org> | 2026-03-17 10:22:10 -0500 |
|---|---|---|
| committer | Dan Williams <dcbw@libreoffice.org> | 2026-04-14 21:04:23 +0200 |
| commit | c0ff12fc3a8b517c7951411d5b1290a7ffa85e78 (patch) | |
| tree | 0a01c504f7953f2d77d44c8028a1f10841c17470 /icon-themes/colibre/vcl/res/checkmono2.png | |
| parent | 9a140ee85d51544e72892f7c0da0ea6facaa43b8 (diff) | |
These are added automatically by macOS whenever the main menu is set with
[NSApp setMainMenu:] and an Edit menu exists. Previously LO would set the
main menu before adding all the actual menus, which prevented macOS from
doing the automatic additions. Instead, re-set the main menu whenever LO
changes the menu layout.
However, some Edit menu translations in LO do not match macOS standard
Edit menu names (eg Español, where LO uses Editar but macOS uses Edición)
and in these cases macOS won't add the standard items. To handle this case
cache the macOS standard menu name inside the AquaSalMenuItem, use the
macOS standard name when calling [NSApp setMainMenu:] and flip back to
the LO name immediately after.
Change-Id: I38d33299f05f99bb084175f6004a4f50068acc74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201933
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'icon-themes/colibre/vcl/res/checkmono2.png')
0 files changed, 0 insertions, 0 deletions
