Add a separator before Quit in the application menu (#30697)

macOS applications should have a separator between “Show All” and “Quit”
in the application menu.
This commit is contained in:
Rob McBroom 2025-05-14 12:19:09 -04:00 committed by GitHub
parent c80aaca0c5
commit ef511976be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,6 +44,7 @@ pub fn app_menus() -> Vec<Menu> {
MenuItem::action("Hide Others", super::HideOthers), MenuItem::action("Hide Others", super::HideOthers),
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
MenuItem::action("Show All", super::ShowAll), MenuItem::action("Show All", super::ShowAll),
MenuItem::separator(),
MenuItem::action("Quit", Quit), MenuItem::action("Quit", Quit),
], ],
}, },