macos: Add services menu (#16959)
This commit is contained in:
parent
21a44d74bd
commit
263e143d1b
2 changed files with 12 additions and 1 deletions
|
@ -381,6 +381,11 @@ impl MacPlatform {
|
|||
}
|
||||
item.setSubmenu_(submenu);
|
||||
item.setTitle_(ns_string(&name));
|
||||
if name == "Services" {
|
||||
let app: id = msg_send![APP_CLASS, sharedApplication];
|
||||
app.setServicesMenu_(item);
|
||||
}
|
||||
|
||||
item
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue