Add "Open Recent" submenu to default

This commit is contained in:
Zhuo Lu 2017-11-18 17:36:30 -08:00 committed by Cheng Zhao
parent f8adaed763
commit f0bff74995
6 changed files with 85 additions and 1 deletions

View file

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