Redesign recent documents role API

- For more flexibility in designing the recent documents menu, now there can be one menu item (known issue: you may specify more but AppKit doens't display more than one) in the submenu list, rather than separating the labels with a tab.
- Also added is the role `clearrecent` that can be given to a menu item that can clear the recent documents.
This commit is contained in:
Zhuo Lu 2017-11-20 16:15:43 -08:00 committed by Cheng Zhao
parent 828d233f2a
commit 5d44dbaf54
3 changed files with 53 additions and 33 deletions

View file

@ -103,7 +103,10 @@ const roles = {
label: 'Services'
},
openrecent: {
label: 'Open Recent\tClear Menu'
label: 'Open Recent'
},
clearrecent: {
label: 'Clear Menu'
},
startspeaking: {
label: 'Start Speaking'