Add "Open Recent" submenu to default
This commit is contained in:
parent
f8adaed763
commit
f0bff74995
6 changed files with 85 additions and 1 deletions
|
@ -174,6 +174,14 @@ Menu.buildFromTemplate = function (template) {
|
|||
return menu
|
||||
}
|
||||
|
||||
Menu.noteNewRecentDocumentURL = function (url) {
|
||||
if (process.platform === 'darwin') {
|
||||
bindings.noteNewRecentDocumentURL(url);
|
||||
} else {
|
||||
throw new Error('Not supported')
|
||||
}
|
||||
}
|
||||
|
||||
/* Helper Functions */
|
||||
|
||||
// Search between separators to find a radio menu item and return its group id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue