Add an API for setting a window's title
This controls how the window appears in the Window menu.
This commit is contained in:
parent
f4d13ef596
commit
04bd57b2c7
5 changed files with 44 additions and 3 deletions
|
@ -202,6 +202,11 @@ impl MacForegroundPlatform {
|
|||
|
||||
menu_bar_item.setSubmenu_(menu);
|
||||
menu_bar.addItem_(menu_bar_item);
|
||||
|
||||
if menu_name == "Window" {
|
||||
let app: id = msg_send![APP_CLASS, sharedApplication];
|
||||
app.setWindowsMenu_(menu);
|
||||
}
|
||||
}
|
||||
|
||||
menu_bar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue