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:
parent
c80aaca0c5
commit
ef511976be
1 changed files with 1 additions and 0 deletions
|
@ -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),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue