From c4c8da67e85c92a296426e3fd39a15ffb80b0b41 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Wed, 30 Dec 2020 15:39:26 +0000 Subject: [PATCH] Fix Help menu on macOS * src/nsmenu.m (ns_update_menubar): Make sure to reset the help menu when we move it to another submenu. --- src/nsmenu.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nsmenu.m b/src/nsmenu.m index 12506b9eb66..5b0225c8ff1 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m @@ -365,6 +365,9 @@ ns_update_menubar (struct frame *f, bool deep_p) else submenu = [menu addSubmenuWithTitle: wv->name]; + if ([[submenu title] isEqualToString:@"Help"]) + [NSApp setHelpMenu:submenu]; + if (deep_p) [submenu fillWithWidgetValue: wv->contents]; -- 2.39.5