Introduce an OSAction that can be associated with menu items for mac platform compatibility.

Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
Mikayla Maki 2023-02-22 09:02:31 -08:00
parent 24fcad3fa2
commit 71d8ead318
4 changed files with 148 additions and 313 deletions

View file

@ -20,6 +20,7 @@ fn main() {
items: vec![MenuItem::Action {
name: "Quit",
action: Box::new(Quit),
os_action: None,
}],
}]);