-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Hello! It will be a good idea if you will add "id" param for selected menu item. For example:
{
name: "File",
menu: [
{
name: "Close",
id: "menu_close"
}
],
}
That feature can help to uniqualize menu items. Any menu actions will depend on its selected menu item id, not on its path or name. This will be very useful when developer will edit text of menu item or change language:
MenuSelect(e) {
switch(e.id) {
case "menu_close":
app.quit();
break;
}
}
Metadata
Metadata
Assignees
Labels
No labels