]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Help menu on macOS
authorAlan Third <alan@idiocy.org>
Wed, 30 Dec 2020 15:39:26 +0000 (15:39 +0000)
committerAlan Third <alan@idiocy.org>
Wed, 30 Dec 2020 15:39:26 +0000 (15:39 +0000)
* src/nsmenu.m (ns_update_menubar): Make sure to reset the help menu
when we move it to another submenu.

src/nsmenu.m

index 12506b9eb666479d8160617663a528d141c68c6c..5b0225c8ff16846949e367124ce665d9a06291c5 100644 (file)
@@ -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];