macos: Add services menu (#16959)

This commit is contained in:
Peter Tripp 2024-10-22 21:08:19 +00:00 committed by GitHub
parent 21a44d74bd
commit 263e143d1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -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
}
}